JodoHost Forums  

Go Back   JodoHost Forums > General Web Coding > General Web Coding

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-10, 03:30 AM
zaboss zaboss is offline
Spiny Dogfish Shark
 
Join Date: Jan 2004
Location: Bucharest
Posts: 134
Rep Power: 7
zaboss is at Grade 1
Send a message via Yahoo to zaboss
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?
Reply With Quote
  #2  
Old 02-03-10, 11:19 AM
bro bro is offline
Whitetip Reef Shark
 
Join Date: Jan 2004
Posts: 267
Rep Power: 7
bro is at Grade 1
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.
Reply With Quote
  #3  
Old 02-03-10, 11:27 AM
zaboss zaboss is offline
Spiny Dogfish Shark
 
Join Date: Jan 2004
Location: Bucharest
Posts: 134
Rep Power: 7
zaboss is at Grade 1
Send a message via Yahoo to zaboss
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.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 07:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) 2002 - 2009 JodoHost