php in htaccess
Hey Ray
Just wondering how, if possible at all, you could use php within an htaccess file?
Basically, am looking to give clients the ability to turn on/off the website to do maintenance so would just have it check if a column was set to 0 or 1 so that this could be shown/hidden and then also check an ip address that they would enter (shown as ??? beloiw):
RewriteCond %{REMOTE_ADDR} !^8\.8\.8\.8
RewriteCond %{REMOTE_ADDR} !^???\.???\.???\.???
RewriteCond %{REQUEST_URI} !^/maintenance/$
RewriteRule ^(.*)$ http://domain.co.uk/maintenance/index.php [R=307,L]
cheers
Jamie