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.

Installing SilverStripe /

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

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

index.html page does not work ?


Reply


2 Posts   2673 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
banal

Community Member, 901 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]