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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   3286 Views


Community Member, 17 Posts

17 January 2010 at 10:37pm


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!



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]