cyrildewit/Maximize/master/public/.htaccess
RewriteEngine On
# Force WWW prefix
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} ^([^.]+).([a-z]{2,4})$ [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#RewriteCond %{HTTP_HOST} ^lobex.nl [NC]
#RewriteRule ^(.*)$ http://www.lobex.nl/$1 [L,R=301]
# Remove .php and add traling slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(.+)/$
RewriteCond %{DOCUMENT_ROOT}/%1.php -f
RewriteRule ^(.*)/$ $1.php [L]
# Add traling slash if it doesn't have one
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule .*[^/]$ %{REQUEST_URI}/ [L,R=301]
#RewriteRule .*[^/]$ /lol [L,R=301]
On Github License
Files
Download PDF of Htaccess file