darkfreaks Posted December 11, 2008 Share Posted December 11, 2008 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 More sharing options...
trq Posted December 11, 2008 Share Posted December 11, 2008 Your question is pretty unclear. What exactly do you want to do? Link to comment https://forums.phpfreaks.com/topic/136571-solved-rewriting-mod_rewrite-code/#findComment-712935 Share on other sites More sharing options...
darkfreaks Posted December 11, 2008 Author Share Posted December 11, 2008 i want it to turn something like www.mysite.com/test.php?var=whatever into www.mysite.com/test.php Link to comment https://forums.phpfreaks.com/topic/136571-solved-rewriting-mod_rewrite-code/#findComment-712948 Share on other sites More sharing options...
trq Posted December 11, 2008 Share Posted December 11, 2008 Just as easy to do it within the test.php file itself. if (count($_GET) >= 1) { header("Location www.mysite.com/test.php"); } Link to comment https://forums.phpfreaks.com/topic/136571-solved-rewriting-mod_rewrite-code/#findComment-712957 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.