Mobile app version of vmapp.org
Login or Join
Lengel546

: 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),

@Lengel546

Posted in: #301Redirect #Htaccess #Redirects

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

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/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme