Nukreipimai su .htaccess
Iš LITNET WIKI.
Ši taisyklę nukreips visas užklausas(iškyrus IP xxx.xxx.xxx.xxx) į failą testing.php:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP:X-CLIENT-IP} !^xxx\.xxx\.xxx\.xxx RewriteCond %{REQUEST_URI} !/testing.php$ [NC] RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] RewriteRule .* /testing.php [R=302,L] </IfModule>