L'htaccess è strutturato così
codice:## EXPIRES CACHING ## ExpiresActive On ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/x-icon A2592000 ExpiresByType application/pdf A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType text/x-javascript A2592000 ExpiresByType application/javascript A2592000 ExpiresByType text/javascript A2592000 ExpiresByType text/css A2592000 ## EXPIRES CACHING ## RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule \.(gif|jpg|swf|flv|png|txt|pdf)$ /feed/ [R=302,L] RewriteRule ^([0-9]*)-(.*)/([0-9]*)-(.*)/news/([0-9]*)-(.*).html$ index.php?mainpage=$1&page=$3&news=$5 [L] RewriteRule ^(.*)/(.*)/news/([0-9]*)-(.*).html$ index.php?mainpage=$1&page=$2&news=$3 [L] RewriteRule ^([0-9]*)-(.*)/news/([0-9]*)-(.*).html$ index.php?page=$1&news=$3 [L] RewriteRule ^(.*)/news/([0-9]*)-(.*).html$ index.php?page=$1&news=$2 [L] ecc........ RewriteRule ^([0-9]*)-(.*)/([0-9]*)-(.*).html$ index.php?mainpage=$1&page=$3 [QSA] RewriteRule ^(.*)/([0-9]*)-(.*).html$ index.php?mainpage=$1&page=$2 [QSA] RewriteRule ^([0-9]*)-(.*).html$ index.php?page=$1 [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*).html$ index.php?page=$1 [QSA]

Rispondi quotando