Pagina 1 di 1

Significato contenuto .htaccess

MessaggioInviato: mer apr 05, 2017 4:54 pm
da 19Natale83
Ciao a tutti!
Gentilmente, qualcuno può spiegarmi riga per riga il significato delle seguenti direttive del file .htaccess?

Codice: Seleziona tutto
RewriteEngine on
RewriteCond %{HTTP_HOST} !=miosito.altervista.org
RewriteRule (.*) http://miosito.altervista.org/$1 [L,R=301]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
# # av:php5-engine
AddHandler av-php5 .php
# av:AntiHotlink
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} \.(gif|jpe?g|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9\-\.]*)[b]miosito[/b]\.altervista\.org
RewriteCond %{REQUEST_URI} !^\/_altervista_ht\/
RewriteCond %{HTTP_REFERER} !^https?://([a-z0-9\-\.]+)google\.
RewriteRule .*$ http://hl.altervista.org/split.php?http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
# AntiHotlink

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^BadBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EvilScaper [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Googlebot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Googlebot-Image [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Googlebot-Mobile [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mediapartners-Google [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Yahoo-Blogs [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^msnbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^FakeUser [NC]
RewriteRule ^(.*)$ http://all.away/


Grazie!