jds-web/gds_web/master/.htaccess - Htaccess File

jds-web/gds_web/master/.htaccess

Redirect permanent /company/ http://gotandadenshi.jp/?page_id=127
Redirect permanent /recruit/ http://gotandadenshi.jp/?page_id=437
Redirect permanent /contact/(.*).html https://gotandadenshi.sakura.ne.jp/gotanda/wordpress/?page_id=337
ErrorDocument 404 http://gotandadenshi.jp
# 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
AddType text/x-component .htc
AddType image/svg+xml .svg
AddType image/svg+xml .svgz

<Files ~ ".(gif|jpe?g|png|ico|js|css|gz|svg)$">
Header set Cache-Control "max-age=2592000"
</Files>
Header set Vary Accept-Encoding

RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME} !.gz$
RewriteCond %{REQUEST_FILENAME}.gz -s
RewriteRule .+ %{REQUEST_URI}.gz
<files *.html.gz>
AddType "text/html;charset=utf-8" .gz
</files>
<files *.js.gz>
AddType "text/javascript;charset=utf-8" .gz
</files>
<files *.css.gz>
AddType "text/css" .gz
</files>
<files *.svg.gz>
AddType image/svg+xml .gz
</files>
AddEncoding x-gzip .gz

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache