Jump to:

23355 Posts in 17702 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » "Page not found" when trying to access admin

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

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

Page: 1 2
Go to End
Author Topic: 1370 Views
  • ojdavey
    Avatar
    Community Member
    6 Posts

    "Page not found" when trying to access admin Link to this post

    Hi,

    After moving a site from the development environment to a live SSL encrypted production environment the admin is suddenly not working and I'm getting a "Page not found" error.

    Anyone have any ideas?

    Thanks!

    Owen

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: "Page not found" when trying to access admin Link to this post

    Do you have mod-rewrite enabled on your production environment? Did you maybe copy the silverstripe-cache directory as well - in which case you might want to do a /dev/build/?flush=1 on your new install?

  • ojdavey
    Avatar
    Community Member
    6 Posts

    Re: "Page not found" when trying to access admin Link to this post

    Thanks for the reply. Yes, mod-rewrite is enabled on the production server. I've also done a /dev/build/?flush=1 and it made no difference. So frustrating because the client can't edit their site! Any other ideas would be most welcome

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: "Page not found" when trying to access admin Link to this post

    Are you able to login when using yourdomain/Security/login instead of yourdomain/admin?

    Also: maybe this thread could help you some, where it was something like a rights issue on the cache directory: http://www.silverstripe.org/general-questions/show/9928

  • ojdavey
    Avatar
    Community Member
    6 Posts

    Re: "Page not found" when trying to access admin Link to this post

    Thanks again. Yes I can login with Security/login but then it still has the same 404 error when I go to /admin. Thanks for the link, this rights issue could definitely be the problem. I'm going to contact the server host and see what the permissions are set at. I'll post the outcome on here so to maybe help others.

  • ojdavey
    Avatar
    Community Member
    6 Posts

    Re: "Page not found" when trying to access admin Link to this post

    Arghh, got the permissions changed and STILL not working. Think I'm going to break something :-p

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: "Page not found" when trying to access admin Link to this post

    Don't...

    I overlooked the fact that you're using SSL... This is new to me so I can't be of much help. You'll find some links googling 'silverstripe ssl admin' that might point you somewhere.

    It could have something to do with the setting of secure cookies... Unfortunately the old SilverStripe docs on SilverStripe SSL are no longer available...

    I did find this about forcing your entire site to run on SSL: Director::forceSSL(); (in config) Maybe the answer lies in that direction? Good luck!

  • ojdavey
    Avatar
    Community Member
    6 Posts

    Re: "Page not found" when trying to access admin Link to this post

    Thanks again for all your help. Still not working though. I've put in the forceSSL and tried a few other things but still no luck. I even tried to track through the code to try and work out what was going on. Just got myself more confused

    1370 Views
Page: 1 2
Go to Top

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

Comments on this website? Please give feedback.