Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

URL Redirect

Posted on 2009-05-11
2
Medium Priority
?
277 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

604 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