- Messages
- 5,508
- Reaction score
- 35
- Points
- 48
I need all links on my domain to redirect to my maintenance page at http://jagf.net/maintenance/maintenance.html (obviosly, that page shouldn't redirect to itself).
I guess this is done in .htaccess , how?
Edit:
ok now I tried this:
How do I make it ignore images and .css?
I guess this is done in .htaccess , how?
Edit:
ok now I tried this:
Code:
RewriteEngine On
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/maintenance/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /maintenance/maintenance.html [L]
How do I make it ignore images and .css?
Last edited: