Forum Moderators: phranque

Message Too Old, No Replies

redirecting multiple ASP pages to a single CGI script

ignoring extra values in the URL

         

griz_fan

3:31 am on Jan 8, 2004 (gmt 0)

10+ Year Member



I'm in the process of moving my website from a Windows host to an Linux/Apache hos. I have several dynamically generated ASP pages that I'd like to redirect to a single CGI script, once I switch over my DNS. for example, I'd like URL's such as these:
[oldsite.com...]
[oldsite.com...]

all redirect to a new page, such as:
[newsite.com...]

now there are dozens of the soon-to-be old URL's (same base URL, just different values in the query string), but I'd like them to all redirect to a single new URL.
Any suggestions on how to approach this?

jdMorgan

8:51 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



griz_fan,

Here are some good references:

Introduction to mod_rewrite [webmasterworld.com]
Apache mod_rewrite documentation [httpd.apache.org]
Apache URL Rewriting Guide [httpd.apache.org]
Using Regular Expressions [etext.lib.virginia.edu]
Topic Search on WebmasterWorld [google.com]

Jim