Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

179 Posts in 40 Topics by 84 members

Migrating a Site to Silverstripe

SilverStripe Forums » Migrating a Site to Silverstripe » 301 Redirect Help!

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

Page: 1
Go to End
Author Topic: 301 Redirect Help! 1064 Views
  • V99
    avatar
    Community Member
    1 posts

    301 Redirect Help! Link to this 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 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 /admin

    But when I put /cms I get:
    /cms/?url=/cms

    Why aren't my redirects working?

  • Anonymous user
    avatar
    Community Member

    Re: 301 Redirect Help! Link to this post

    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.

  • BuddhaSource
    avatar
    Community Member
    36 posts

    Re: 301 Redirect Help! Link to this post

    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

  • banal
    avatar
    Community Member
    770 posts

    Re: 301 Redirect Help! Link to this post

    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.

    1064 Views
Page: 1
Go to Top

Currently Online: Euphemismus, timwjohn

Welcome to our latest member: GreenWork

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.