Web Hosting Talk







View Full Version : Friendly redirects.


fischermx
02-01-2005, 01:40 PM
Hi,

For some reasons I got 4 sites with the same content and currently all ranked in SERP. It happens because I bought a domain name, than wasn't happy, so got another, then another, then another :) Yeah, I'm crazy, but finally, found the perfect one.

To fix this mess, and save time in site updates (and possible banned for the duplicate content, which I don't know when/where happens), I want to point three of the domains to the newest one, yes "the perfect". The olders even have a PR of 1, the new has zero of course.

Which techinques are available to point the old sites to the new one?

- The easiest I think of is framing. But that will keep the not very nice url in the users browser location bar. I want the current visitors of the uglies name to know and start to visit the new one.

- Setup a page redirect in serverside.

What else ? I'm in a sharing hosting so I can't do tricks with the IIS settings.

e-zone
02-01-2005, 02:31 PM
is there apache with mod rewrite ?

if so i think 301 permanent moved would work ok.

code:

redirect 301 / http://www.you.com/

put that in a .htaccess file...

fischermx
02-01-2005, 02:33 PM
It is asp.net hosting :(

fischermx
02-01-2005, 10:54 PM
Here it is :

public class WebForm1 : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Response.StatusCode = 301;
Response.RedirectLocation = "http://newsite" ;
}
}

:D