I need to rewrite some historic URL's to new ones. Here is an example
http://www.example.com/results.asp?ds=somestring
to
http://www.example.com/some_static_page.html
This has been driving me nuts, a solution would be really appreciated
g1smd
6:23 am on May 18, 2012 (gmt 0)
Of the 80 000 threads in this forum, a little over 3000 of them mention or explain how to do this. Please review those and provide your example code. You'll be using a RewriteRule.
However your question is not clear. RewriteRules can be used to generate external redirects or can be used for an internal rewrite. With a redirect, user ask for URL "A" and is told to make a new request for URL "B". With a rewrite, user asks for URL "B" and the request is internally rewritten to fetch content from a different place on the server hard drive to that suggested by the path part of the requested URL.
To be clear, a redirect is a URL to URL translation that the user will see change in the browser address bar and a rewrite is a URL to filepath translation where the user sees no change in the browser address bar.