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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

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


Go to End


2 Posts   869 Views

Avatar
vwd

Community Member, 166 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, 136 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