Htaccess File

Apretaste/Core/master/public/.htaccess

HTTP_HOST, HTTPS, REQUEST_FILENAME, REQUEST_URI, SERVER_NAME
RewriteEngine On
ExpiresActive On

#
# set phalcon URLs
#
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]

#
# set cache options
#
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
#ExpiresByType text/html "access plus 2592000 seconds"

#
# Remove www from the URLs
#
RewriteCond %{SERVER_NAME} apretaste.com
RewriteCond %{HTTP_HOST} ^www.
RewriteRule ^(.*)$ https://apretaste.com/ [R=301,L]

#
# Force https for apretaste.com
#
RewriteCond %{SERVER_NAME} apretaste.com
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Exit mobile version