andristeiner/checktools/master/.htaccess - Htaccess File

andristeiner/checktools/master/.htaccess

<IfModule mod_rewrite.c>
        RewriteEngine On

  # remove www.
  RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
  RewriteRule ^ http%2://%1%{REQUEST_URI} [L,R=301]

  # rewrite everything to / that does not exist
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule .* / [L,R=301]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_URI

Comments

Apache