Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: htaccess redirects not working
11-20-2012, 02:36 AM #1
- Join Date
- Nov 2012
- Thanked 0 Times in 0 Posts
htaccess redirects not working
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:
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?
11-29-2012, 11:05 AM #2
RewriteEngine On RewriteRule ^contact_us\.html$ http://www.mydomain.co.uk/contact_us.php [R=301] RewriteRule ^myoldpage\.html$ http://www.mydomain.co.uk/mynewpage.html [R=301,L]Thanks!