Добрый человек Sender с форума ArmadaBoard поделился ссылкой на замечательный ресурс .htaccess
Tools На данном сайте помогают создавать .htaccess-скрипты под самые разные нужды. Ниже привожу список всех вариантов (сорри, лень переводить) :
1. .htpasswd
Generator - Use the .htpasswd generator to create passwords for .htpasswd files.
2. .htaccess
Authentication - Password protect one or more directories with Basic HTTP Authentication using .htaccess
. A .htpasswd
file will be used to store login details. Use the .htpassswd
generator to create entries in the .htpasswd
file.
3. Hotlink Protection - Use this generator to create a .htaccess file for hotlink protection of your images and pictures. Hotlink protection can save you lots of bandwidth by preventing other sites from displaying your images.
4. Block Hitbots - Use this generator to create a .htaccess
file to block hitbots based on referering URL. You need the Apache module mod_rewrite to use the generated .htaccess
file.
5. Block IPs - Use this generator if you want to block certain ips from accessing your site.
6. Error Document - With Apache you can create custom error pages. Enter an URL to show a custom error page for the specified status code or leave the input box blank to not specify an error page.
7. Redirection by Language - With this generator you can create a .htaccess file to redirect certain languages.
Собсно, на этом все. Думается, если овладеть в совершенстве синтаксисом htaccess, то можна творить чудеса в сфере управления трафиком на своем сайте.
7 авг. 2007 г.
Всемогущий .htaccess - настройка и редирект.
Раздел: инструменты, htaccess