12

I want to have my site down for an hour and I was using

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

but I don't like the default error page. Is there a 301 redirect where I can redirect everyone who is not on my IP address to a nice and pretty page?

Glorfindel
  • 391
  • 2
  • 7
  • 12
Chris Mccabe
  • 223
  • 1
  • 4

1 Answers1

8

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.

John Conde
  • 86,484
  • 28
  • 150
  • 244