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.

General Questions /

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

temporary index page


Reply


4 Posts   2503 Views

Avatar
servalman

Community Member, 211 Posts

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

Avatar
Willr

Forum Moderator, 5513 Posts

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]

Avatar
Jay-Dee

Community Member, 11 Posts

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

Avatar
Willr

Forum Moderator, 5513 Posts

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$)