Jump to:

23576 Posts in 19403 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » index placeholder

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

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

Page: 1
Go to End
Author Topic: 1222 Views
  • redcirce
    Avatar
    Community Member
    22 Posts

    index placeholder Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: index placeholder Link to this post

    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.

  • redcirce
    Avatar
    Community Member
    22 Posts

    Re: index placeholder Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: index placeholder Link to this post

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

  • redcirce
    Avatar
    Community Member
    22 Posts

    Re: index placeholder Link to this post

    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 ###

  • redcirce
    Avatar
    Community Member
    22 Posts

    Re: index placeholder Link to this post

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

    Thanks for your help willr.

    1222 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.