Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » New install, getting a list of iles instead of SS

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: 1747 Views
  • PatDeLux
    Avatar
    Community Member
    4 Posts

    New install, getting a list of iles instead of SS Link to this post

    Hi all,
    I am totally new here. I made a successfull install of SS in a ../silverstripe folder on my site.
    When I http to mysite.com/silverstripe, I get a list of files.

    However, if I go to mysite.com/silverstripe/anytext then I site the default site with a "page not found" page. From them I can navigate perfectly within the site.
    If I navigate to mysite.com/silverstripe/admin, I get the admin page fine.

    Is this a .htacces porblem ? A folder permission problem ?
    Here is the content of the .htaccess file:

    SetEnv REGISTER_GLOBALS 0
    SetEnv ZEND_OPTIMIZER 1
    SetEnv MAGIC_QUOTES 1
    SetEnv PHP_VER 5
    ### SILVERSTRIPE START ###
    <IfModule mod_dir.c>
    DirectorySlash Off
    </IfModule>

    RewriteEngine On
    RewriteBase /silverstripe

    RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    ### SILVERSTRIPE END ###

  • PatDeLux
    Avatar
    Community Member
    4 Posts

    Re: New install, getting a list of iles instead of SS Link to this post

    I am really impressed by the number of answers ! What a vibrant community !

  • grilldan
    Avatar
    Community Member
    135 Posts

    Re: New install, getting a list of iles instead of SS Link to this post

    Insulting an entire community isn't how to go about asking for help.

    However.

    Try adding a slash to the end of your url.

    yoursite.com/silverstripe/

  • PatDeLux
    Avatar
    Community Member
    4 Posts

    Re: New install, getting a list of iles instead of SS Link to this post

    Thank you Grilldan.
    This was definitely not an insult, just a comment.
    Unfortunately, your answer does not reply to the question. I know how to reach the test site, and your suggestion takes me to the "Page not found" page.

    I'd like SS to answer to the url www.idevlop.com/silverstripe (without slash) by providing the Home page, like anyone would expect.

    After googling I tried adding

    Options -Indexes

    to the .htaccess.
    This indeed prevents browsing, but by raising an Error 403 with the www.idevlop.com/silverstripe. Not ideal yet.

    Any other idea/suggestion welcome !

  • mihkel
    Avatar
    Community Member
    2 Posts

    Re: New install, getting a list of iles instead of SS Link to this post

    Hello all,

    same problem in here. I managed to solve it by changing DirectorySlash to On in .htaccess

  • PatDeLux
    Avatar
    Community Member
    4 Posts

    Re: New install, getting a list of iles instead of SS Link to this post

    Problem solved.
    1) I had changed the homepage url to "accueil" (same as home, in French) and I didn't know that keeping the homepage url to home was critical.
    2) Following Mihkel's suggestion, I modified the part of .htaccess generated by Silverstripe installation, changing DirectorySlash from off to on.

    Now it's ok.

    Thanks.

  • QualityKev
    Avatar
    Community Member
    1 Post

    Re: New install, getting a list of iles instead of SS Link to this post

    I have the same question and am happy that changing this setting seems to resolve it. But I'm a bit reluctant to do this as presumably it has been set like this for a reason and I don't want to break anything. For those of us who have tried this change- have you noticed if anything else gets broken or is it all good news from now on?

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