Results 1 to 4 of 4
Sep 9, 2012, 06:53 #1
htaccess - why doesn't this 301 redirect work?
I have an htaccess file in the root directory of a site, and it contains a number of 301 redirects, most of which work fine. But some do not. Here's an example:
Redirect 301 /page/?qs=query_string http://www.domain.com/page.html
Please note that, in this example, "/page/" is an actual page in and of itself (there's a document "/page/index.php"). When I put "/page/?qs=query_string" in the location window of my browser, nothing in the URL changes, and the page displays the "/page/" content as if there were no query string in the URL. The second part of that is actually to be expected, since the page isn't looking for the variables in the "bad" query string, but why isn't it redirecting?
Suffice it to say that I'm not an expert on redirects, so thanks for any help!