Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Problem with url path?

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1611 Views
  • JayP
    Avatar
    Community Member
    1 Post

    Problem with url path? Link to this post

    Hi.

    I just installed SS to remote server and for some time I was wondering why my live site didn't work, it only shows index of my folder.

    Well I find out that the url need to have / at the end, like:
    www.mysite.com/silver (dont work)
    www.mysite.com/silver/ (works)

    Is this because it's located in the sub folder? Or is the same going to happen when I transfer site to the root? Does it need to be www.mysite.com/

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Problem with url path? Link to this post

    Silverstripe should run in a subdirectory .. No problem there.

    Did you include the <% base_tag %> in the header of your site ?

  • SaulBretado
    Avatar
    Community Member
    4 Posts

    Re: Problem with url path? Link to this post

    I did this on my .htaccess, and it works very well:

    ### SILVERSTRIPE START ###
    ### Remove the next 3 lines ###
    <IfModule mod_dir.c>
    DirectorySlash Off
    </IfModule>
    #######################

    ### MORE CODE GOES HERE ###
    ### SILVERSTRIPE END ###
    -------------------------------------------
    I hope this works for you too!

    1611 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.