Lowry - I haven't seen your htaccess file to know what's already in there, but you may need to add this above the first RewriteCond:
RewriteEngine on
Some (few?) servers may need both of these lines added above the first RewriteCond:
RewriteEngine on
Options +FollowSymlinks
That second line would be used if your server isn't configured with FollowSymLinks in its <directory> section in httpd.conf, and you get a 500 Internal Server error when using the code without the second line.
~~
Another option could be to use something like this:
order allow,deny
deny from . eonpal.com
deny from . eonsex.com
allow from all
The denied users in this case will get a 403 error saying something like "You do not have permission to access this site." Or if you configure a custom error page for 403 errors, you can show them whatever you like.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Last edited by Simon; 2006-12-26 at 07:20 AM..
Reason: added the allow,deny method
|