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] Quote 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? Quote 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 Quote 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"); } Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.