Solved

URL Redirect

Posted on 2009-05-11
2
248 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem with spacing columns on a row in a table 10 25
Web forms being filled out by bots 4 34
PHP AJAX Wordpress 9 21
Diminish Pop-up  in 3 seconds 7 19
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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)

777 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