Htaccess File

bar5z6/swe2015groupl/master/.htaccess

HTTP_HOST, HTTPS, REQUEST_FILENAME, REQUEST_URI, X-Forwarded-Proto
RewriteEngine on

# uncomment the following lines to force HTTPS
RewriteCond %{HTTP:X-Forwarded-Proto} !https 
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

# removes trailing slashes
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [L,R=301]

# remove index.php from URL
RewriteCond $1 !^(index.php|assets|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Exit mobile version