Jump to content

struggling to get a redirect to work


keat

Recommended Posts

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 by keat
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...