Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

index.html page does not work ?


Go to End


2 Posts   3644 Views

Avatar
Mikan

Community Member, 17 Posts

17 January 2010 at 10:37pm

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

Avatar
bummzack

Community Member, 904 Posts

18 January 2010 at 1:52am

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]