I have revamped a website and now the URLs are different in their format.
Formerly a page was www.example.com/about.
Now it is www.example.com/about.php
How can I write a redirect rule so that when a user clicks an old URL (from search engines or whathaveyou) ‘www.example.com/about’ it receives a 301 redirection over to www.example.com/about.php?
Try this:
Updated Answer:
Sorry, this was not as straightofeward as I thought.
It should be in the root web directory where your URL maps to, sounds like public_html.