Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » index.html page does not work ?

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 2635 Views
  • Mikan
    Avatar
    Community Member
    17 Posts

    index.html page does not work ? Link to this post

    hello,

    my site has been installed,

    Site under Construction, contents is creating....

    I just created some index page . like , Index.htm , index.html ,

    index.html page with contents "Site under Construction"

    then , I uploaded the index.html to my site ROOT Directory.

    then open my site, index.html does not work from my site. it shows silverstripe page.

    Please help me, I want hide my site contents, Because of Site under Construction!

    THanks

  • banal
    Avatar
    Community Member
    901 Posts

    Re: index.html page does not work ? Link to this post

    Add the following line (red) in your .htaccess

    RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
    RewriteRule ^/?$ index.html [L]

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

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