0

I have not done this before and am confused on a couple issues.

Currently the live site is on Bluehost, created with Frontpage (yes I know), the new site is under development with Wordpress and is on Cloudways.

The registered domain will be kept but what I don't understand is how to handle redirects from the old page structure to the new one.

So as I understand it when it is time to go live with the new site on Cloudways the domain will be pointed to their server and somehow all the temp URL's on Cloudways get updated with the domain name...

So my question is:

The URLs on the current live site and dev site do not match, for example:

Current live site:

http://www.example.com/Whoweare.htm  

and on the dev/new site they are:

http://www.example.com/who-we-are/

How do I redirect these?

I have looked at 301 redirects but which .htaccess file do they go in, the one on the old site or on the new site?

How can I test my redirects before going live with the new site?

  • "the one on the old site or on the new site?" - Since you only have one domain, the old and new site will effectively become the same singular website at the time the domain is switched - so there is only one place the .htaccess could possibly go. – MrWhite Feb 4 '17 at 11:40
  • I could ftp into the Bluehost site where I would find a .htaccess file or I could ftp into the Cloudways site where I would find another .htaccess file. But I think I understand now that after the domain is pointed to Cloudways the redirects need to go there... – user2250892 Feb 5 '17 at 5:34
1

There is only one .htaccess file that should be on your site and that should be the site root. In the file add a single redirect line for each of the pages that need to be redirected using the htaccess command...

Redirect 301 /oldfile.htm /newfile.htm

So in other words using your example you would add a line to the .htaccess file reading...

Redirect 301 /Whoweare.htm /who-we-are/

  • which .htaccess file? The one on the old site or the new site? – user2250892 Feb 4 '17 at 9:54
  • On the old site. – Chris Rutherfurd Feb 4 '17 at 9:55
  • ok, but the old sites hosting will be cancelled..not sure I understand how this works... it also seems there is no way to test this. – user2250892 Feb 4 '17 at 10:08
  • 1
    My apologies I got it back to front, was thinking of a previous question from someone else. In your instance it would go into the htaccess file on the new site. Since you are not changing domains you won't run into too many issues, you're not trying to forward a domain connection, you're basically changing the names of your pages and so you can do the same thing as in the answer but in the new site. – Chris Rutherfurd Feb 4 '17 at 10:17
  • I see thanks. But then there is no way to test this until I point the domain away from the bluehost site to the dev site, ie. go live with the new site? – user2250892 Feb 4 '17 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.