21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1050 Views |
-
index placeholder

4 March 2009 at 12:00pm Last edited: 4 March 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.
-
Re: index placeholder

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.
-
Re: index placeholder

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.
-
Re: index placeholder

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
-
Re: index placeholder

4 March 2009 at 2:18pm Last edited: 4 March 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\.222RewriteRule $ /maintenance.html [R=302,L]
### SILVERSTRIPE END ###
-
Re: index placeholder

4 March 2009 at 3:24pm
Okay, I worked out what I was doing wrong there!
Thanks for your help willr.
| 1050 Views | ||
|
Page:
1
|
Go to Top |


