keat Posted August 2, 2017 Share Posted August 2, 2017 (edited) I'm struggling to get a redirect to work. I changed the custom url of a category to something more meaningfull from cable-ties-b-w.html to nylon-cable-ties.html Actually, the SEO mod puts the dashes in not me. but my redirect doesn't work, I suspect the dashes has something to do with it ?? RewriteRule ^cable\-ties\-b\-w\.html$ "https\:\/\/www\.mydomain\.co\.uk\/nylon\-cable\-ties\.html" [R=301,L] can anyone spot the issue ? If I use this Redirect 301 /cable-ties-b-w.html https://www.mydomain.co.uk/nylon-cable-ties.html it redirects me to https://www.mydomain.co.uk/nylon-cable-ties.html?seo_path=cable-ties-b-w whats putting ?seo_path=cable-ties-b-w on the end Edited August 2, 2017 by keat Quote Link to comment Share on other sites More sharing options...
keat Posted August 2, 2017 Author Share Posted August 2, 2017 It seems the first one works if I take out the slashes eg: RewriteRule ^cable-ties-b-w.html$ "https\:\/\/www\.mydomain\.co\.uk\/nylon-cable-ties.html" [R=301,L] annoyingly, it was cpanel that added the slashes. I'll never understand this stuff. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.