All pastes #820534 Raw Edit

Something

public text v1 · immutable
·published 2007-12-17 16:52 UTC
rendered paste body
#########################
# httpd.conf include    #
#      to EOF           #
#########################

<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>

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            #
#########################
Options +FollowSymLinks +ExecCGI
        AddHandler cgi-script .cgi .pl
        AddHandler server-parsed .shtml
        AddType text/html .shtml
        <Location />
                Options +Includes ExecCGI
        </Location>


#########################
# .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]