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

RewriteEngine on
#suPHP_ConfigPath /home/kuching3/public_html/beta
DirectoryIndex index.htm index.html index.php
Options -Indexes

Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options nosniff
Header always append X-Frame-Options SAMEORIGIN

AddDefaultCharset UTF-8
DefaultLanguage en-us

#php_flag display_startup_errors on
#php_flag display_errors off
#php_flag html_errors on
#php_flag log_errors on
#php_value error_log  /home/hotelcom/grocere.com.my/errors.log

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

RewriteRule ^content/([^/\.]+)?$ index.php?page=$1 [QSA,L]

RewriteRule ^home?$ index.php [QSA,L]
RewriteRule ^contact_us?$ contact_us.php [QSA,L]
RewriteRule ^sightseeing-tours?$ news.php [QSA,L]

RewriteRule ^products?$ products.php [QSA,L]
RewriteRule ^product_details/([^/\.]+)?$ product_details.php?p=$1 [QSA,L]
RewriteRule ^album?$ album.php [QSA,L]
RewriteRule ^album/([^/\.]+)?$ album.php?al=$1 [QSA,L]

RewriteRule ^tour_countries?$ tour_countries.php [QSA,L]
RewriteRule ^tours?$ tours.php [QSA,L]
RewriteRule ^tours/([^/\.]+)?$ tours.php?country=$1 [QSA,L]
RewriteRule ^tours/([^/\.]+)/([^/\.]+)?$ tours.php?country=$1&state=$2 [QSA,L]
RewriteRule ^tours/([^/\.]+)/([^/\.]+)/([^/\.]+)?$ tours.php?country=$1&state=$2&city=$3 [QSA,L]
RewriteRule ^promotion$ tours.php?promo=yes [QSA,L]
RewriteRule ^hotels$ hotels.php [QSA,L]

RewriteRule ^type/([^/\.]+)?$ tours.php?ty=$1 [QSA,L]
RewriteRule ^type/([^/\.]+)/([^/\.]+)?$ tours.php?c=$1&ty=$2 [QSA,L]
RewriteRule ^tour_details/([^/\.]+)?$ tour_details.php?tour=$1 [QSA,L]

RewriteRule ^page/([^/\.]+)?$ page.php?t=$1

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors Off
   php_value max_execution_time 30
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 128M
   php_value post_max_size 24M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 24M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors Off
   php_value max_execution_time 30
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 128M
   php_value post_max_size 24M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 24M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

# php -- BEGIN cPanel-generated handler, do not edit
# This domain inherits the “PHP” package.
# php -- END cPanel-generated handler, do not edit
