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".
Asked
Active
Viewed 840 times
-1

J0e3gan
- 8,740
- 10
- 53
- 80

Eric Libay
- 101
- 8
1 Answers
0
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 /.

BMC
- 166
- 4
-
Thank you for a fast reply, I'm using magento and I tried to apply the rewriterule but it's not working. – Eric Libay Nov 18 '14 at 06:07
-
Do you have any other overriding rules? Most large PHP applications will consume everything, taking a route for /* – BMC Nov 18 '14 at 06:08
-
Yes, I'm using the default htaccess generated by Magento. – Eric Libay Nov 18 '14 at 06:21