######################### # httpd.conf include # # to EOF # ######################### Include conf/vhost.conf # Enable caching ExpiresActive On ExpiresDefault A86400 # 61 days ExpiresByType image/png A5259487 ExpiresByType image/gif A5259487 ExpiresByType image/jpeg A5259487 # 28 days ExpiresByType image/x-icon A2419200 ExpiresByType application/x-javascript A2419200 ExpiresByType text/css A2419200 # 3 days ExpiresByType text/plain A259200 ExpiresByType text/html A259200 ######################### # vhost.conf # ######################### ServerName devel.cgsurveying.co.uk ServerAlias www.devel.cgsurveying.co.uk ServerAdmin webmaster@devel.cgsurveying.co.uk DocumentRoot /home/cgsurveying/devel.cgsurveying.co.uk/user/htdocs ErrorLog /home/cgsurveying/devel.cgsurveying.co.uk/user/logfiles/error_log TransferLog /home/cgsurveying/devel.cgsurveying.co.uk/user/logfiles/access_log php_admin_value open_basedir /tmp:/home/cgsurveying/devel.cgsurveying.co.uk SuexecUserGroup cgs_devel matrixdomain ScriptAlias /cgi-bin/ /home/cgsurveying/devel.cgsurveying.co.uk/user/htdocs/cgi-bin/ Options +FollowSymLinks +ExecCGI AddHandler cgi-script .cgi .pl AddHandler server-parsed .shtml AddType text/html .shtml Options +Includes +ExecCGI # Begin SSL Config SSLEngine on SSLCertificateFile /home/cgsurveying/devel.cgsurveying.co.uk/user/cert/ssl.cert SSLCertificateKeyFile /home/cgsurveying/devel.cgsurveying.co.uk/user/cert/ssl.key # End SSL Config # Begin user directives <-- # --> End user directives ######################### # .htaccess file: # ######################### RewriteEngine on RewriteCond %{QUERY_STRING} (.*) RewriteRule ^cgs/my-cgs-account/unsubscribe/(.*).phtml$ /index.php?target=newsletter_remove_ask&email_address=$1&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^shopping-basket/(.*)/(.*)/(.*).phtml(.*)$ /index.php?target=shopping_basket&basket=$1&pid=$2&cart_id=$3&$4&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^shopping-basket/view(.*)$ /index.php?target=shopping_basket&$1&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^shopping-basket/update/update-shopping-basket.phtml(.*)$ /index.php?target=shopping_basket&$1&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^shopping-basket/payment_processor$ /index.php?target=demo_payment_processor&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^shopping-basket/(.*)$ /index.php?target=$1&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/purchase/price-list/(.*).phtml(.*)$ /index.php?target=surveying_equipment_price_list&change_type=purchase$2&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/for-hire/price-list/(.*).phtml(.*)$ /index.php?target=surveying_equipment_price_list&change_type=hire$2&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/purchase/main-category/(.*)/(.*).phtml(.*)$ /index.php?target=surveying_equipment&main_cat=$1&$3&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/purchase/sub-category/(.*)/(.*).phtml(.*)$ /index.php?target=surveying_equipment&sub_cat=$1&$3&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/purchase/view-product/(.*)/(.*).phtml(.*)$ /index.php?target=view_product&surveying_pid=$1&$3&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/special-offer/view-product/(.*)/(.*).phtml(.*)$ /index.php?target=view_product&surveying_pid=$1&$3&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/purchase/special-offers/(.*).phtml(.*)$ /index.php?target=surveying_equipment_special_offers&$2&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/for-hire/category/(.*)/(.*).phtml(.*)$ /index.php?target=surveying_equipment_for_hire&for_hire=1&main_cat=$1&$3&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors-equipment/for-hire/view-product/(.*)/(.*).phtml(.*)$ /index.php?target=view_product&surveying_pid=$1&for_hire=1&$3&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^do_search.phtml(.*)$ /index.php?target=do_search&$1&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^cgs/contact(.*)$ /index.php?target=contact&$2&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^cgs/my-cgs-account/(.*).phtml(.*)$ /index.php?target=my_cgs_account&page=$1&$2&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^surveyors/(.*).phtml(.*)$ /index.php?target=$&1$2&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^cgs/(.*).phtml(.*)$ /index.php?target=$1&$2&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^login-failed/(.*).phtml(.*)$ /index.php?target=login_failed&user_id=$1&$2&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) ReWriteRule ^home.phtml(/?)(.*)$ /index.php?$1&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) ReWriteRule ^welcome/nojs(/?)$ /index.php?target=home&check=yes&js=false&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) ReWriteRule ^welcome(/?)$ /index.php?target=home&check=yes&js=true&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) ReWriteRule ^robots(/?)$ /index.php?check=yes&js=false&%1 [QSA] RewriteCond %{QUERY_STRING} (.*) RewriteRule ^(.*).phtml(.*)$ /index.php?target=$1&$2&%1 [QSA]