Geronantimo
Technical User
Is it possible to use the .htaccess file to specify IP addresses that are allowed to access pages, with all others being redirected using the mod_rewrite?
I have tried this (and a number of other combinations) but without success:
I have tried this (and a number of other combinations) but without success:
Code:
order deny,allow
deny from all
Allow from 10.20.30.40
RewriteEngine ON
RewriteRule /.* [URL unfurl="true"]http://www.otherdomain.com/[/URL] [R=301,L]