Forum Moderators: mack

Message Too Old, No Replies

redirect

redirect wildcards and parameters

         

nobby

5:18 am on Oct 20, 2004 (gmt 0)

10+ Year Member



My hosting company keeps going down for days with database errors so i have temporarily copied the site to another host and need to redirect all traffic to the new host.
Is there a way of using wild cards for example to redirect
www.mydomain.com/folder1/hello.asp?parameter1=1&parameter2=2.....etc
to
www.myNewdomain.com/folder1/hello.asp?parameter1=1&parameter2=2.....etc

basically i want to capture the url yhat comes in and replace just the start of it "www.mydomain.com" with "www.myNewdomain.com" and remainder of the original url to the new domain and redirect it.

topr8

7:29 am on Oct 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



as far as i'm aware if your host company is 'down' then none of your redirects would work.

you could change the dns records to point at the new domain, however this would be pointless as it would be permanent, you may as well just move hosts.

nobby

7:44 am on Oct 20, 2004 (gmt 0)

10+ Year Member



The host is not actually down we are getting the following error

Microsoft OLE DB Provider for ODBC Drivers error '8007000e'

[Microsoft][ODBC Microsoft Access Driver] Not enough space on temporary disk.

if i browse to a page which has no database connections then i can view that page.

The idea of the redirects is if this problem happens again i have my site copied to two different hosts then if this problem occurs all i have to do is copy my databae to the other host rename my prepaired redirect page to global.asa in the root and then everyone who comes to our site the first thing that is actioned is the global.as which is really my redirect page.

Hope this makes sense