Jump to:

23456 Posts in 18905 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » can't 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
Go to End
Author Topic: 1889 Views
  • dips_045
    Avatar
    Community Member
    20 Posts

    can't access admin Link to this post

    Hi,

    I was testing out silverstripe and created my website in a subfolder on my server.

    Now that I am happy with it, I moved the folders into the root directory. The website looks fine but now I cannot access silverstripe admin.

    I thought it would be www.myurl.com/admin since I moved it but it doesn't work.

    also on top that when I click on the links on my website the url has index.php in the middle.
    so its www.myurl.com/index.php/contact ...how do I get rid of the index.php?

    hope someone can help!

    Thanks

  • te_chris
    Avatar
    Community Member
    24 Posts

    Re: can't access admin Link to this post

    Have you checked your .htaccess file? It's probably rewriting all your urls to the old directory.

  • dips_045
    Avatar
    Community Member
    20 Posts

    Re: can't access admin Link to this post

    Thanks for replying. I found the admin. I had to type in index.php/admin. So does that mean that the rewrite rules have no been set up correctly?

    When I installed straight into my subfolder, I had no problems. There was no index.php in the middle of the url.
    (i.e. www.myurl.com/subfolder/admin/)

    I have been working on a mac so I can't see the htaccess file.

    What do I have to do to set up the rewrite rules? will that solve my problem?

    Thanks for your help.

  • dips_045
    Avatar
    Community Member
    20 Posts

    Re: can't access admin Link to this post

    thank you! I didn't move .htaccess to the root.
    its working fine now thanks :-D

  • datswicked
    Avatar
    Community Member
    15 Posts

    Re: can't access admin Link to this post

    I have a fix
    I have found that running the development on MAMP in a subfolder caused the htaccess to add a rewriteBase rule.
    i.e.

    RewriteBase /subfolder

    and changing this to

    RewriteBase /

    fixed the index.php/admin/ issue on my live server.

    1889 Views
Page: 1
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.