# Uncomment this to ensure that register_globals is Off # php_flag register_globals Off # URL Alias - see install.txt # Prevent access to .tpl Order allow,deny Deny from all Options +FollowSymlinks RewriteEngine On RewriteBase [[relativeurl]]/ # AlegroCart REWRITES START RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) index.php?$1 [L,QSA] # AlegroCart REWRITES END # Try if you have problems with url alias # RewriteRule ^(.*) index.php [L,QSA] # Focus on one domain - Uncomment to use # RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] # RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] # Hide Apache version normally seen at the bottom of 404 error pages, directory listing..etc. ServerSignature Off #Modify max uploadable file size if needed #php_value upload_max_filesize 128M #php_value post_max_size 128M # Enable compression for text files SetOutputFilter DEFLATE # EXPIRES CACHING # Store website’s components in browser’s cache until they expire. Support old browsers. ExpiresActive On ExpiresDefault A31536000 ExpiresDefault A604800 ExpiresByType application/xhtml+xml "access plus 0 seconds" ExpiresByType text/html "access plus 0 seconds" # EXPIRES CACHING # BEGIN Cache-Control Headers. This will override Expires Caching set above Header set Cache-Control "max-age=604800, public" Header set Cache-Control "max-age=31536000, public" Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate" # END Cache-Control Headers # Disable ETags as we have own process Header unset ETag FileETag None