21294 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2212 Views |
-
temporary index page

18 March 2009 at 10:03pm
Hi
I'm starting with silvertstripe and I wanted to know How do I do to have a simple temporary index page (no menus just a picture)while I devellop the real site
Thank You
Thomas
-
Re: temporary index page

18 March 2009 at 10:25pm
I use this script in the .htaccess file to redirect all requests while i upgrade a site
RewriteCond %{REQUEST_URI} !/maintenance.html$ <!--- LINK TO YOUR TEMP PAGE FILE
RewriteCond %{REMOTE_HOST} !^212\.123\.239\.177 <!--- YOUR IP.
RewriteRule $ /maintenance.html [R=302,L] -
Re: temporary index page

6 January 2010 at 4:02am
Hello Will, I have used your method and it works fine.
The only problem now is that my "coming soon" page has an image and a flash element, and for some reason they will not show up.
Do you know why this is happening?
Thank you
Jay -
Re: temporary index page

6 January 2010 at 9:03am
Jay-Dee - this is probably because that rewrite rule says Redirect ALL traffic to the html temp page. Including requests to load css/images. You might need to add another condition to that list which excludes those file types -
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
| 2212 Views | ||
|
Page:
1
|
Go to Top |



