Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Prevent SS from automatically redirecting to new URL when URL changed.


Reply


2 Posts   388 Views

Avatar
vwd

Community Member, 160 Posts

1 February 2012 at 6:31pm

Hi,

I'd created a couple of 'hidden' static content pages to be used as static content within widgets. I had generic names for those pages like 'Testimonial' and 'Promotion', and somehow got indexed and Google SiteLinks were created.

I then thought I would change the page names/URL to less generic names, not minding if those clicking on the 'SiteLinks' get a 404. But it appears that SS is automatically redirecting from the old URLs to the new ones.

Eg. /testimonial is being redirected automatically to /testimonial-widget-static-content

Is there any way of breaking that automatic redirection please?

Thanks very much.

VWD.

Avatar
neilcreagh

Community Member, 95 Posts

14 August 2014 at 11:35pm

Hey did you ever find a way of breaking this automatic redirection? Does anyone know how I might go about doing this? My client wants to change the URL and have the older URL no longer work (redirect to 404).
Thanks