Jump to content

use mod rewrite to disable site?


michaellunsford

Recommended Posts

I have a client who wants to temporarily turn off their site and be able to turn it back on at a moment's notice. I can't use the control panel to disable the site because it also disables email. What's the mod rewrite to move all traffic over to a single page? I need it to also be recursive (route the same even for subdirectories).

 

the following doesn't work.

RewriteRule ^[.]+$ /coming_soon.php [L,NS]

 

Thanks for any help!

Link to comment
https://forums.phpfreaks.com/topic/91169-use-mod-rewrite-to-disable-site/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.