Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

redirecting multiple ASP pages to a single CGI script

ignoring extra values in the URL

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

Junior Member

10+ Year Member

joined:Mar 4, 2003
votes: 0

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:

all redirect to a new page, such as:

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?

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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0


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]