310 Posts in 82 Topics by 148 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 3271 Views |
-
301 Redirect Help!

30 May 2009 at 11:58pm
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 http://www.mysite.com/news-archive/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 /adminBut when I put /cms I get:
/cms/?url=/cmsWhy aren't my redirects working?
-
Re: 301 Redirect Help!

31 May 2009 at 5:37pm
Are you 100% sure your .htaccess file is being used? Apache must be configured with the AllowOverrides directive for them to work. If you're unsure, type in some garbage to your .htaccess and it should spit out a server error when you load the page.
-
Re: 301 Redirect Help!

17 July 2009 at 5:04pm
Same problem
simple redirect is not working.
redirect 301 /old/old.htm http://www.you.com/my-page/
It gives me an error
mydomain.com/my-page/?old.html -
Re: 301 Redirect Help!

17 July 2009 at 6:50pm
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.
| 3271 Views | ||
|
Page:
1
|
Go to Top |



