
RewriteEngine on

RewriteCond %{HTTP_HOST} ^arabiankraftpaper\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.arabiankraftpaper\.com$
RewriteRule ^index\.php$ "https\:\/\/arabiankraftpaper\.com\/" [R=301,L]

#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ https://arabiankraftpaper.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.arabiankraftpaper.com [NC]
RewriteRule ^(.*)$ https://arabiankraftpaper.com/$1 [L,R=301,NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://arabiankraftpaper.com/ 
RewriteRule ^home  index.php [NC,L]
RewriteRule ^about  about-us.php [NC,L]
RewriteRule ^mgrecycledkraftpaper  mg_kraft.php [NC,L]
RewriteRule ^mgvirgingradekraftpaper  mg_virgin_kraft.php [NC,L]
RewriteRule ^infrastructure  infrastructure.php [NC,L]
RewriteRule ^contact  contact.php [NC,L]
RewriteRule ^services  services.php [NC,L]
RewriteRule ^orderform  orderform.php [NC,L]
RewriteRule ^products  products.php [NC,L]
RewriteRule ^bleachedkraftpaper  bleachedkraft.php [NC,L]
RewriteRule ^unbleachedkraftpaper  unbleachedkraft.php [NC,L]
Redirect /home https://arabiankraftpaper.com

ErrorDocument 404 https://arabiankraftpaper.com
<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"
  ExpiresByType text/javascript "access plus 216000 seconds"
  ExpiresByType application/x-javascript "access plus 216000 seconds"
  ExpiresByType application/javascript "access plus 216000 seconds"
  ExpiresByType video/mp4 "access plus 1 year"
    ExpiresByType video/mpeg "access plus 1 year"
</ifModule>

<ifModule mod_headers.c>
  <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
    Header set Cache-Control "max-age=2592000, public"
  </filesMatch>
  <filesMatch "\\.(css)$">
    Header set Cache-Control "max-age=604800, public"
  </filesMatch>
  <filesMatch "\\.(js)$">
    Header set Cache-Control "max-age=216000, private"
  </filesMatch>
  <filesMatch "\\.(xml|txt)$">
    Header set Cache-Control "max-age=216000, public, must-revalidate"
  </filesMatch>
  <filesMatch "\\.(html|htm|php)$">
    Header set Cache-Control "max-age=1, private, must-revalidate"
  </filesMatch>
</ifModule>
 
 

 