Jump to:

4873 Posts in 7171 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » temp site home page while testing

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

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

Page: 1
Go to End
Author Topic: 1683 Views
  • w1
    Avatar
    Community Member
    21 Posts

    temp site home page while testing Link to this post

    Normally when we create a site in ss, we create a temp sub directory to install and create the site, and move it to root when it goes live.

    We have a large site (and highly publicised in our region) going live on Sunday, and wish to move the site to root now for final testing, but retain a temp home page (index.html) until we remove it. I cannot figure out what to add to the top of the ss stuff in the .htaccess file to achieve this.

    Appreciate some help if anyone has done this successfully

    cheers
    Peter

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: temp site home page while testing Link to this post

    This is the code I use when upgrading a site, you can probably adapt this for you use. Change the 888 to your IP address (this allows you to make changes)

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

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

  • w1
    Avatar
    Community Member
    21 Posts

    Re: temp site home page while testing Link to this post

    perfect - thank you Will

    can other ip addresses be added too? - if so, what would used

    RewriteCond %{REMOTE_HOST} !^888\.888\.888\.888
    RewriteCond %{REMOTE_HOST} !^888\.888\.888\.887

    ?
    or something different from that
    tks
    Peter

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: temp site home page while testing Link to this post

    Pretty sure that will work

  • w1
    Avatar
    Community Member
    21 Posts

    Re: temp site home page while testing Link to this post

    tks again

    cheers
    Peter

    1683 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.