芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/.htaccess
SetEnv PHP_VER 5_3 # Mise en cache pour 1 mois
Header set Cache-Control "max-age=2592000"
# Mise en cache pour une semaine
Header set Cache-Control "max-age=604800"
# Mise en cache pour 1 journe
Header set Cache-Control "max-age=86400"
# activation Gzip # Compress the files AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript # Removes some bugs BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent # Turn on URL rewriting RewriteEngine On ErrorDocument 404 / ErrorDocument 403 / Options -Indexes # Installation directory RewriteBase / # Protect hidden files from being viewed
Order Deny,Allow Deny From All
# Protect application and system files from being viewed RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php/$0 [PT] # Rediriger vers www RewriteCond %{HTTP_HOST} ^prisma-web.pro$ RewriteRule ^(.*)$ http://www.prisma-web.pro/$1 [QSA,L,R=301] # RewriteCond %{HTTP_HOST} ^wwww.prisma-web.pro$ # RewriteRule ^(.*)$ http://www.prisma-web.pro/$1 [QSA,L,R=301]