how can i block access to a site (or rather a folder on my site) from all but one ip address AND have them sent to another site/html file on my server
i also want to do this via .htaccess?
so far i have this but it doesn't work as rather then people getting sent to another page they get an "Internal Server Error" message
Code:
ErrorDocument 403 http://domain.com/some-page-you-want-them-to-get-sent-to.html
Order deny,allow
Deny from all
Allow from my-ip-here
so for example if someone goes to mydomain.com/myfolder i want everyone but me to be sent to mydomain.com/somefolder/