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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

index placeholder


Go to End


6 Posts   2237 Views

Avatar
redcirce

Community Member, 22 Posts

4 March 2009 at 12:00pm

Edited: 04/03/2009 12:11pm

I've uploaded SilverStripe to a webserver, but this has overwritten the existing site. I've created a simple index.html to act as a placeholder until the site has been completed. How do I implement this? Renaming it "index.html" doesn't help. Is it something to do with .htaccess?

Thanks.

Avatar
Willr

Forum Moderator, 5523 Posts

4 March 2009 at 1:31pm

See this thread for the same sort of idea you want to do (redirect a user to a single page) - http://silverstripe.org/upgrading-silverstripe/show/253226#post253226.

Avatar
redcirce

Community Member, 22 Posts

4 March 2009 at 2:12pm

Thanks willr. When I do this, other users get the maintenance page, but I'm unable to log in at all as I get a 404 error when trying to open www.mysite.com/admin.

I've checked my ip is correct in the .htaccess.

Avatar
Willr

Forum Moderator, 5523 Posts

4 March 2009 at 2:14pm

Can you login to the admin if you remove the code listed? Eg is it that redirect rule causing an issue or something else

Avatar
redcirce

Community Member, 22 Posts

4 March 2009 at 2:18pm

Edited: 04/03/2009 2:21pm

yes, i can login without that code.

this is my .htaccessfile:

### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !/maintenance.html$ 
RewriteCond %{REMOTE_HOST} !^222\.222\.22\.222

RewriteRule $ /maintenance.html [R=302,L]

### SILVERSTRIPE END ###

Avatar
redcirce

Community Member, 22 Posts

4 March 2009 at 3:24pm

Okay, I worked out what I was doing wrong there!

Thanks for your help willr.