Redirect and rewrite URLs

Redirect and rewrite URLs

Using Redirect and rewrite URL's in an .htaccess file enables you to redirect users from an old page to a new page. Without having to keep the old page. For example, if you use index.html as your index file and then later rename index.html to home.html. You could set up a redirect to send users from index.html to home.html. For example: A redirect to a local site file Redirect /path/to/old/file/old.html /path/to/new/file/new.html This is a redirect to an external site file Redirect /path/to/old/file/old.html http://www.example.com/new/file/new.html The first path IMPORTANT, The first path to the old file must be a local UNIX path, NOT…
Read More