I've been trying to get some 301 redirects setup for the pages of a site that is moving Joomla install to a Wordpress site using the .htaccess. I'm having trouble getting the redirects to go to the new URLs without adding a file extension to the URL.
Here and example:
The original URL of the page is:
The new URL of the page is:
I set the following for the redirect:
The problem is that the last slash is being removed and the .html is being added to the new URL:Code:Options +FollowSymLinks RewriteEngine On Redirect 301 /cms/index.php/Class-Newsletters.html http://www.example.com/site/for-class-of-2017/class-newsletters/ [R=301,L]
This results in a page not found error.
I've tried adding a $ to the end of the URL in the redirect. This prevents the .html to the new URL, but adds a $ and still ends up with a page not found.
I'm at a loss of how to correct this. Any ideas?