Question Redirect CMS url

Status
Not open for further replies.

RedWS600

Customer
Hi I wonder if you can help. For a couple of years I have had CMS articles ending in '.html' just before Xmas something changed and CMS articles ends in nothing', i may have ticked something by accident. Anyway, some pages have been indexed and have links going to them eg.

http://www.solent-renegades.co.uk/content/166-new-waterlooville-tip

I could do with doing a redirect/displaying the page of

http://www.solent-renegades.co.uk/content/166-new-waterlooville-tip.html

If I do a custom redirect (although would have to do it for each individual article, I have a couple of hundred, but many we written before I must have clicked the Custom 'CMS Entry URL'

If I do the following
(Pro) Custom Redirects
'content/21-southsea-cruise' => 'content/21-southsea-cruise.html'

I get a redirect loop which it to be expected.

Is there a way to globally accept the CMS article without the HTML? then redirect to the HTML? I guess the article ID is at the beginning which should be all it needs.


Many Thanks
Dan.
 
Try this:
Code:
'^content/21-southsea-cruise$' => 'content/21-southsea-cruise.html'

$ in this case means "end of line", meaning "if nothing exists after cruise".
 
Try this:
Code:
'^content/21-southsea-cruise$' => 'content/21-southsea-cruise.html'

$ in this case means "end of line", meaning "if nothing exists after cruise".

Brilliant thanks for that, works a treat. I must learn more about rewrite rules and symbols at some point.

Thanks again.
 
Not a problem at all, glad it works for you :)

If you have any further questions or issues, please feel free to start a new support ticket. Thanks!
 
Status
Not open for further replies.

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,169
Customer rating
5.00 star(s) 1 ratings
Back
Top