Ben Robinson
Ben Robinson

Reputation:

htaccess show holding page

Hi I want to show a holding page to outside users but from my machine gain access to the site. Can I do this with htaccess?

Upvotes: 0

Views: 679

Answers (1)

vartec
vartec

Reputation: 134631

RewriteEngine On 
RewriteCond !REMOTE_ADDR=127.0.0.1
RewriteRule .* /holdingPage.html [R,L]

Replace 127.0.0.1 with your machine's IP.

http://httpd.apache.org/docs/2.2/howto/access.html

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

Upvotes: 1

Related Questions