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>
Files
![HTTP_HOST, REQUEST_FILENAME, REQUEST_URI](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/andristeiner/checktools-htaccess-322x250.png)