[WordPress] 設置時の .htaccess
2009.08.12 13:03
DirectoryIndex index.php index.html index.htm .ht
<Files ~ "^(wp-config\.php|xmlrpc\.php|wp-mail\.php|\.ht)">
order allow,deny
deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} "\.(html?|xml|xsl|js|css)$"
RewriteCond %{REQUEST_FILENAME} !"\.gz$"
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule . %{REQUEST_URI}.gz [L]
RewriteCond %{HTTP:Accept-Encoding} !gzip
RewriteCond %{REQUEST_FILENAME} "\.(html?|xml|xsl|js|css)$"
RewriteCond %{REQUEST_FILENAME} !"\.min$"
RewriteCond %{REQUEST_FILENAME}\.min -s
RewriteRule . %{REQUEST_URI}.min [L]
</IfModule>
<Files ~ "\.(html?|xml|rdf|js|css|min|gz)$">
FileETag MTime Size
</Files>
<Files ~ "\.(jpe?g|gif|png)$">
FileETag none
</Files>
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html
posted by wokamoto1973
http://quill.to/wokamoto1973/3046e42c11
