Jump to content

[SOLVED] Rewriting mod_rewrite code???


darkfreaks

Recommended Posts

ok so how would i rewrite the following so it strips out something like

 

www.chickapets.com/test.php?var=$variable

 

so it returns www.chickapets.com/test.php

 

 

i found this but it isnt exactly what i think i need for this

 

RewriteCond %{THE_REQUEST} ^GET\ /.*\;.*\ HTTP/
RewriteCond %{QUERY_STRING} !^$
RewriteRule .* www.chickapets.com%{REQUEST_URI}? [R=301,L]

Link to comment
https://forums.phpfreaks.com/topic/136571-solved-rewriting-mod_rewrite-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.