Htaccess File


# Set host for production enviroment
#SetEnvIf Host "^(www.)?" ENVIRONMENT=production

# Turn on URL rewriting
RewriteEngine On

# Protect hidden files from being viewed
<Files .*>
  Order Deny,Allow
  Deny From All

# Protect application and system files from being viewed
RewriteRule ^(?:app|config|plugins)b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule .* index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Exit mobile version