So permanently renaming a directory or file should be an incredibly straightforward matter.
Old emails sent to customers tend to contain a line directing them to our Terms & Conditions. Now I'm setting up a new system (Zen Cart) and the URL for T&Cs will change.
For customer convenience, I would like to redirect them to the new URL (https://www.example.com/index.php?main_page=conditions) automatically if they enter the old ones (which are example.com/index.php?id=terms_and_conditions and example.com/terms_and_conditions.php). This is regardless of whether the old URLs are entered with "http://" and/or "www.".
Into .htaccess I have added the following code but only the second redirect works!
## Permanently renaming a file or directory
Redirect permanent example.com/index.php?id=terms_and_conditions [
example.com...]
Redirect permanent example.com/terms_and_conditions.php [
example.com...]
I would be most grateful for any help. Thanks either way!
Happy new year to all!
UPDATE - Possible cause of issue is that zen cart runs a template system where URLS take the query string ?main_page=pagename whereas the old system took the query string ?id=pagename so this might be the cause of the conflict. Just a hunch... Thanks again all