Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

i want to my site down for an hour and i was using

order Deny,Allow
Deny from all
Allow from my.ip.add.ress

but i dont like the default error page, is there a 301 redirct where i can redirect everyone whos not on my ip address to a nice and pretty page?

share|improve this question
    
+1 Nice question. –  Dave Nov 3 '10 at 16:37
add comment

1 Answer

up vote 8 down vote accepted

Just specify a page that all 403 error messages should be shown:

order Deny,Allow
Deny from all
Allow from my.ip.add.ress

ErrorDocument 403 /forbidden.html

You can customize this page to look any way you wish.

share|improve this answer
2  
+1 even better answer –  Dave Nov 3 '10 at 16:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.