301 Redirect Rule
3 posts
• Page 1 of 1
301 Redirect Rule
How do I 301 redirect this.
Old Website URLs:
http://www.companyurl.com/gallery.php?id=misc
http://www.companyurl.com/gallery.php?id=another-url
http://www.companyurl.com/gallery.php?id=another-url-3
Currently this rule:
RewriteRule ^gallery\.php(.*?)$ /photos/ [L,R=301]
Get's me this:
http://www.companyurl.com/photos/?id=misc
I'd like the rules to 301 redirect to:
http://www.companyurl.com/photos/
So that the "?id=misc" is removed.
Thanks
Old Website URLs:
http://www.companyurl.com/gallery.php?id=misc
http://www.companyurl.com/gallery.php?id=another-url
http://www.companyurl.com/gallery.php?id=another-url-3
Currently this rule:
RewriteRule ^gallery\.php(.*?)$ /photos/ [L,R=301]
Get's me this:
http://www.companyurl.com/photos/?id=misc
I'd like the rules to 301 redirect to:
http://www.companyurl.com/photos/
So that the "?id=misc" is removed.
Thanks
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests