?
Solved

URL Redirect

Posted on 2009-05-11
2
Medium Priority
?
271 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 30

Accepted Solution

by:
Britt Thompson earned 2000 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:Britt Thompson
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

752 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