RobbieBlokeToys Posted February 11, 2016 Share Posted February 11, 2016 I have discovered a problem which I just can't get my head around. I have a prestashop install with a wordpress blog on another directory (so it's - shopishere/blog-is-here/blog-post) and I'm getting a lot of 404 errors which seem to be coming from the blog to the Prestashop. It's all down to the spelling of the link. When I moved everything over to another server I created the blog directory with a BIG B rather than little. So, people are following a link which was blog-is-here/blog-post but that's been changed to Blog-is-here and it's resulting in a 404. I have tried numerous times to do a 301 redirect in .htaccess and nothing is working. No matter what I try for a redirect it never takes. I can put it anywhere in the htaccess, use any version of format, and it just doesn't redirect. Even adding the 301 in the Wordpress still sends that link to the 404 in Prestashop. Does anyone have any idea how I can redirect a "blog-is-here/blog-post" to a "Blog-is-here/blog-post" and it actually work? Thanks Link to comment Share on other sites More sharing options...
GeorgeMaina Posted April 30, 2017 Share Posted April 30, 2017 This is what worked for me: 1. Log into your wordpress dashboard 2. Go to Settings then Permalinks 3. Under Common Settings, choose the post name type, so that your wordpress posts look like this: http://yourdomain.co.ke/folder/sample-post/ Cheers! Link to comment Share on other sites More sharing options...
SmartPlugs Posted April 30, 2017 Share Posted April 30, 2017 Hi, Did you try something like (probably needs some adaptations): RewriteEngine on RewriteRule ^/blog-is-here/(.*|)$ http://www.%{HTTP_HOST}/Blog-is-here/$1 [R=301,L] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now