: Moving website to new host, which .htaccess to use? 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),
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:
www.example.com/Whoweare.htm
and on the dev/new site they are:
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?
More posts by @Lengel546
1 Comments
Sorted by latest first Latest Oldest Best
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/
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.