Two different URLs pointing to the same page

866 views Asked by At

Let say I have URL like http://www.example.com/pages/process-one.html, I want to add an entry in .htaccess that will let me visit the same page using the URL https://www.example.com/process/process-one.html - so people will use "process" instead of "pages".

1

There are 1 answers

3
BMC On

RewriteEngine On
RewriteRule /process/process-one.html /pages/process-one.html [L]

You may need RewriteBase / or some other based on your server config. This htaccess goes in /.