neemzy/patchwork/master/public/.htaccess
AddDefaultCharset UTF-8
Options -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
RewriteCond %{THE_REQUEST} (.*)//+(.*) [NC]
RewriteRule ^(.*)$ %1/%2 [L,R=301]
RewriteCond %{HTTP_HOST} (.*).$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]+ /[^ ?]*?($| )
RewriteRule ^(.*)$ /$1? [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/api/
RewriteRule ^(.*)/$ http://%{HTTP_HOST}/$1 [L,R=301]
RewriteRule ^index.php/(.*)$ /$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [E=REMOTE_USER:%{HTTP:Authorization},L]
On Github License
Files