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

301 Redirects


Go to End


4 Posts   2058 Views

Avatar
codemonkey88

Community Member, 24 Posts

16 September 2016 at 3:15am

Edited: 16/09/2016 3:16am

I have migrated a client's site from a different system, so am now trying to add some 301s to htaccess. Having looked at a few different posts, I have tried both the

Redirect 301 /old-link-html /new-link
and
RewriteRule
approaches, but in each case I get redirected to /new-link?url=old-link, which in turn fires a 404.

Is there a way of doing this?

Avatar
Guy Van Bael

Community Member, 61 Posts

21 October 2016 at 7:38pm

Avatar
blackduck

Community Member, 13 Posts

24 October 2016 at 6:45pm

I've been using the module http://addons.silverstripe.org/add-ons/silverstripe/redirectedurls
for the same purpose. After a full sie restructure it all seems to work pretty well.

Avatar
codemonkey88

Community Member, 24 Posts

24 October 2016 at 9:26pm

ok, will try a couple of modules and see what happends. Cheers.