letid/lethil/master/public/.htaccess - Htaccess File

letid/lethil/master/public/.htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Advance, based on Subdomain Name
    RewriteCond %{THE_REQUEST} ^GET /src/
    RewriteCond %{HTTP_HOST} !^www
    RewriteCond %{HTTP_HOST} ^([^.]+).([^.]+).([^.]+)$
    RewriteRule ^src/(.*)$ ../app/%1/resource/$1
    RewriteCond %{HTTP_HOST} ^(?:www.)?([^.]+).([^.]+)$
    RewriteRule ^src/(.*)$ ../app/%1/resource/$1

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
GET, HTTP_HOST, REQUEST_FILENAME, THE_REQUEST

Comments

Apache