IfModule mod_php5.c
php_value display_errors on
php_value error_reporting 6135
php_flag magic_quotes_gpc On
php_value post_max_size 50M
php_value upload_max_filesize 20M
php_value memory_limit 50M
IfModule
Options -Indexes
DirectoryIndex index.php
IfModule mod_rewrite.c
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule index.html$ index.php
RewriteRule ^en/langsession.html langsession.php?lang=en [L]
RewriteRule ^it/langsession.html langsession.php?lang=it [L]
# rewite rule for top search result
RewriteRule luxury-hotels.html$ index.php?dir=view&page=search_result&type=1
RewriteRule boutique-hotels.html$ index.php?dir=view&page=search_result&type=2
RewriteRule hotel-spa.html$ index.php?dir=view&page=search_result&type=3
RewriteRule hotel-golf.html$ index.php?dir=view&page=search_result&type=4
RewriteRule design-hotel.html$ index.php?dir=view&page=search_result&type=5
# End of top rewite rule
RewriteRule location-(.*).html$ index.php?dir=view&page=search_result&mode=top&locationid=$1
RewriteRule region-(.*).html$ index.php?dir=view&page=search_result&mode=top&stateid=$1
## rule for the result and hotel details page
RewriteRule hotels-(.*)\.html$ index.php?dir=view&page=hotels&city=$1
RewriteRule details-(.*)-(.*)\.html$ index.php?dir=view&page=hotel-details&hid=$2
#End of rule
RewriteRule result.html$ index.php?dir=view&page=search_result
RewriteRule hotels.html$ index.php?dir=view&page=search_result
RewriteRule site-map.html$ index.php?dir=view&page=site_map
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)\.html$ index.php?dir=view&page=display&url=$1
IfModule
htacess configuration
