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.

Migrating a Site to Silverstripe

What you need to know when migrating your existing site to SilverStripe.

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

301 Redirect Help!


3 Posts   3758 Views


30 May 2009 at 11:58pm Community Member, 1 Post

Hey guys,

I have moved a static HTML website into SilverStripe - something which was incredibility easy and I'm loving SilverStripe.
I now have the website live and I have setup some 301 redirects pointing the old pages to the new ones.

There's just one big problem - the redirects aren't working :(

At the top of my htaccess file I have:
redirect 301 index-newsarchive.html

But when I goto index-newsarchive.html I get:
"The requested page couldn't be found."

I've done a bit of research into this and no one else has had this problem. I have been lead to believe my redirect system isn't working correctly. Because:

Isn't this a default redirect setup with SilverStripe:
/cms should goto /admin

But when I put /cms I get:

Why aren't my redirects working? :(


17 July 2009 at 5:04pm Community Member, 57 Posts

Same problem

simple redirect is not working.

redirect 301 /old/old.htm

It gives me an error


17 July 2009 at 6:50pm Community Member, 901 Posts

Have you tried using rewrite rules instead of the redirect statement?
Something along the lines of:

# Place these rules just after the RewriteBase line
RewriteRule ^old/old.htm my-page [R=301,NC,L]

This worked fine for me.