up9cloud/up9cloud-website/master/.htaccess - Htaccess File

up9cloud/up9cloud-website/master/.htaccess

#prevent that apache try to match existing filename to render, but cant access then return 404...
Options -Multiviews

<IfModule mod_rewrite.c>
RewriteEngine On
#redirect non-public folder files all redirct to index.php
RewriteCond %{REQUEST_URI} !/(img|css|js|fonts)/.* [NC]
RewriteRule .* index.php [QSA]
#Removes index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /(.*)index.php($| |?).* [NC]
RewriteRule .* /%1 [QSA,R=301,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_URI, THE_REQUEST

Comments

Apache