What is the best way to 301 redirect an entire e-commerce site to a new domain if all of the page URLs are remaining the same?
-
I have a client that is an e-commerce site with thousands of pages. They are undergoing a complete rebranding including the change of their domain. However each of the page urls are exactly the same, other than the domain. For instance http://www.olddomain.com/widget1002 needs to permanently redirect to http://www.newdomain.com/widget1002 . I have never completed a redirect before, so this is new territory for me. Will they have to go to each page and redirect it to the new one, or is there a script they can just write once to take care of everything, then put up a custom 404 Error Page in case of a problem? And if so, what needs to be done to complete this? Thanks in advance. The client uses an e-commerce hosting company that seems to think the change is going to be very lengthy, so I'm trying to get the groundwork out of the way and simplify things.
-
Answer:
All you need to do is edit the htaccess file and add a simple redirect command: Redirect 301 / http://newdomain.com
Andrei Cristof at Quora Visit the source
Other answers
You've got two options. The first is probably the easiest and safest, but the second one is always there as an option. Redirect 301 / http://example.com/ That goes into your .htaccess file. It should (I haven't used this method in practice) redirect all traffic to the server over to the equivalent URI on the example.com server. The second option is to code into each of the pages in the site a redirect to the equivalent page on the other domain. I've done this to redirect things before and it works, especially if you aren't very adept at using .htaccess.
Thomas Foster
Related Q & A:
- What is the best way to travel in new south wales?Best solution by Yahoo! Answers
- What is the best way to get to New York City from Philadelphia?Best solution by Yahoo! Answers
- What is the best way to find new members for a yahoo group?Best solution by Yahoo! Answers
- What's the best way for me to get the most out of my new HDTV?Best solution by Yahoo! Answers
- What is the best way to negotiate a salary for a new position?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.