.htaccess - RewriteRule 301 issue where original URL contains a ? (question mark) -
I am changing an existing website so that there is no change in the domain. I want to use 301 redirects so that bots and search engines can recognize new pages. I have tried to do the following but it is not working. Default URL: SiteAction = Instructions $ http://example.com/map/ [R = 301, L]
The question mark completely after the index seems to break my site in that way , So I have also tried to write it like this, but nothing happens:
RewriteRule ^ index.php (.) SiteAction = Directions $ http://example.com / I am using a Dreamhost PS, if it makes a difference.
You can not match QUERY_STRING in RewriteRule , you RewindCund% {QUERY_STRING} is required. Use this rule instead: Rewrite on rewriting engine %% {QUERY_STRING} ^ SiteAction = Instructions $ [nc] # 301 Using redirects, Revert Raul Rerealable ^ index \ .php $ http://example.com / map /? [R = 301, L, NC]
Comments
Post a Comment