Htaccess File

nickv-phpbb/area51/master/web/.htaccess

HTTP_HOST, HTTPS, REQUEST_FILENAME, REQUEST_URI
<IfModule mod_rewrite.c>
    RewriteEngine On

    # Redirect to HTTPS, except for /phpBB
    RewriteCond %{HTTPS} off
    RewriteCond %{REQUEST_URI} !^/phpBB
    RewriteCond %{HTTP_HOST} ^area51.phpbb.com [NC]
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    RewriteRule "^(.*/)?.git/" - [F,L]

    RewriteRule ^/?$ app.php [QSA,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
Exit mobile version