Solved

URL Redirect

Posted on 2009-05-11
2
233 Views
Last Modified: 2012-05-06
I used www.site1.com as a development domain for a website, and now that the site is completed, it has been moved to www.site2.com.

The problem is that search engines are already showing www.site1.com, the development site, in search results. I need to take down www.site1.com, but I want to redirect any traffic that does go here to www.site2.com

What is the best way to do this? Thanks.
0
Comment
Question by:isaacr25
  • 2
2 Comments
 
LVL 30

Accepted Solution

by:
renazonse earned 500 total points
ID: 24359069
You can add a meta tag to your index page at site1 to redirect:

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.site2.com">

what type of server are the sites on? If they're using apache you can use a .htaccess redirect
0
 
LVL 30

Expert Comment

by:renazonse
ID: 24359092
Also, depending on how your host is setup you can often mirror a site from within your domain control panel if site1 is no longer needed. Where site1 mirrors site2 and there's no redirect. Or, change the dns of site1 so it points to the same A record as site2.

The meta tag is the simplest for sure. This is the .htaccess redirect:

Redirect 301 / http://www.site2.com/
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now