advancedfuture Posted November 22, 2008 Share Posted November 22, 2008 So I created a sitemap and submitted it to google, problem is I messed up on one of the variables. Instead of it saying services= it said service= so the pages all got indexed but its all messed up. I am trying to 301 mod rewrite the messed up URLs to the correct ones. I have written it like so RewriteRule ^services.php?st=(.*)&city=(.*)&service=(.*)$ services.php?st=$1&city=$2&services=$3 [R=301,L] However it is not redirecting! Am I doing something wrong? Quote Link to comment https://forums.phpfreaks.com/topic/133833-mod_rewrite-301-redirect-not-working/ Share on other sites More sharing options...
corbin Posted November 23, 2008 Share Posted November 23, 2008 Is RewriteEngine On? Also, does it show a 404 or something, or just do nothing? Quote Link to comment https://forums.phpfreaks.com/topic/133833-mod_rewrite-301-redirect-not-working/#findComment-696877 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.