![]() |
|
#1
|
|||
|
|||
|
Domain redirection
Hi,
I am forced to give up on 2 domains and move the content to another domains respectively. Both of them are very well positioned on google. While one of them is a static html site so won't be a big problem to enter manualy the permanent redirection to the new domain, not sure how to handle the other one, which is an Classic ASP shop, with links created dynamically. The site has about 200 items at the moment, therefore at least 200 links to be redirected. Is there a way to create an automat redirection from http://www.domain1.com/default.asp?prodID=XX&catID=YY to http://www.domain2.com/default.asp?prodID=XX&catID=YY without me entering all redirections manually in HSphere? |
|
#2
|
|||
|
|||
|
Re: Domain redirection
If it's on Linux you could use an htaccess redirect, but I think you need modrewrite so it won't work on Windows for dynamic URLs.
You could try adding this: <% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.thenewurl.com"&GetPath() function GetPath() query_string = request.ServerVariables("QUERY_STRING") if query_string <> "" then query_string = "?" & query_string end if GetPath = request.ServerVariables("URL") & query_string end function %> Should be search engine friendly, I think. Probably best to try it out on one of the online search engine friendly redirect checkers, though. |
|
#3
|
|||
|
|||
|
Re: Domain redirection
Thanks, in the end I have put a warning page for the visitors that came from search engines as the HSphere redirect don't grasp the querystrings so they be aware that it's not a site error, but an url change. Fortunately, the site is early stages (was launched in october last year) and had 20/day or so visitors caming from SE. I have used webmasters tools to let google know about the url change so hopwefully the links will be updated soon.
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Domain redirection using DNS | AllendeL4S | VPS Hosting Support | 6 | 07-24-09 01:39 PM |
| Redirection Problem | WebDesignSlave | Reseller Hosting Support | 7 | 03-09-06 10:50 AM |
| Domain Redirection | eehost | Reseller Hosting Support | 10 | 01-18-06 04:17 PM |
| Redirection for non-existent subdomains | bro | Reseller Hosting Support | 1 | 08-01-04 06:44 PM |