olijen/shop/master/.htaccess - Htaccess File

olijen/shop/master/.htaccess

RewriteEngine on
DirectoryIndex index.php
# Enable if SSL is configured 
# Redirect all requests to the SSL version 
# RewriteCond %{SERVER_PORT} !^443$
# RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI, SERVER_NAME, SERVER_PORT

Comments

Apache