RewriteEngine on RewriteRule ^3b http://ensoku.dyndns.org [R=301,L] RewriteRule ^3b/(.*)$ http://ensoku.dyndns.org/$1 [R=301,L] ## Add Expires headers ExpiresActive On ExpiresDefault "access plus 1 week" ## Compress components with gzip SetOutputFilter DEFLATE BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary Header append Vary User-Agent env=!dont-vary ## Configure entity tags FileETag none ## SetEnvIf Referer "180.26.239.162" BadReferer order allow,deny allow from all deny from .ukrtel.net Deny from env=BadReferer
RewriteRule ^3b http://ensoku.dyndns.org [R=301,L] RewriteRule ^3b/(.*)$ http://ensoku.dyndns.org/$1 [R=301,L]
## Add Expires headers ExpiresActive On ExpiresDefault "access plus 1 week"
⇒更新されてもその期間は古い内容が適用されるので、更新の頻繁なページや動的なページには不向き
ExpiresByType ファイルタイプ "(access|modification) plus N (minutes|days|weeks|months|years|)"
## Compress components with gzip SetOutputFilter DEFLATE BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary Header append Vary User-Agent env=!dont-vary
## Configure entity tags FileETag none
<Files ~ "^ファイル名\.拡張子$"> order deny,allow deny from all allow from IPアドレス </Files>
<Files ~ "^wp-login\.php$"> order deny,allow deny from all allow from 123.123.123.123 allow from 124.124.124.124 </Files>
<Files ~ "^special\.*$"> order deny,allow deny from all allow from IP ADDRESS </Files>
<Files ~ "\.(jpg|gif|png)$"> order deny,allow deny from all allow from IP ADDRESS </Files>
<Files ~ "^ファイル名\.拡張子$"> order allow,deny allow from all deny from IPアドレス </Files>
<Files ~ "^wp-login\.php$"> SetEnvIf X-Forwarded-For "123.123.123.123" allowed order deny,allow deny from all allow from env=allowed </Files>