
RewriteEngine On

# add "#" in front if you are going to install it in subfolder. Otherwise, remove "#".
#RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.*)$ index.php [QSA,L]

#RewriteCond %{HTTPS} off 
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#---Cache-Control - Start

# seconds = 60 
# minutes = 60 
# 1 hour = seconds * minutes (60*60) = 3600


# 4 hrs 	= 3600 * 4 		= 14400 seconds
# 8 hrs 	= 3600 * 8 		= 28800 seconds
# 24 hrs 	= 3600 * 24 	= 86400 seconds
# 1 week 	= 86400 * 7 	= 604800 seconds
# 30 days 	= 86400 * 30 	= 2592000 seconds
# 1 year 	= 86400 * 365 	= 31536000 seconds

 
# client cache these file ext => css|js|ico
<filesMatch "(gif|jpeg|jpg|png|ico|css|js|swf)$">
	#Header set Cache-Control "max-age=31536000, public"
</filesMatch>

#---Cache-Control - End
