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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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
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]
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
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$)