1). for example I want non existing pages to go to 404.shtml
2). I want the whole site in http format except the payment page which I always want to be at https://alltherides.com/payment.php
3). I just feel that my htaccess file can be made better
C'mon Richard you can do it. You are the smartest mod rewrite person I have ever encountered. Thanks again man
- Code: Select all
AddHandler application/x-httpd-php5 .html .htm .shtml .xml
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^alltherides\.com [NC]
RewriteRule ^(.*)$ http://alltherides.com/$1 [L,R=301]
RewriteRule ^.+_for_sale_([0-9]+).html$ http://alltherides.com/viewlisting.php?id=$1
RewriteRule ^.+-images([0-9]+).html$ http://alltherides.com/viewallimages.php?id=$1
RewriteRule ^.+_Reviews_([0-9]+)_([0-9]+)_([0-9]+).html$ http://alltherides.com/yearmakemodelreviews.php?year=$1&make=$2&model=$3
RewriteRule ^.+_Review_([0-9]+).html$ http://alltherides.com/yearmakemodelreview.php?id=$1
RewriteRule ^.+_Specifications_([0-9]+).html$ http://alltherides.com/modelspecification.php?id=$1
RewriteRule ^.+_History_([0-9]+).html$ http://alltherides.com/getManufacturerHistory.php?id=$1
RewriteRule ^.+_Model_Info_([0-9]+).html$ http://alltherides.com/getModelHistory.php?id=$1
RewriteRule ^.+_Dealer_([0-9]+).html$ http://alltherides.com/viewDealerProfile.php?id=$1
RewriteRule ^([A-Za-z0-9-]+)/?$ http://alltherides.com/viewDealerProfile.php?id=$1 [L]
SECFILTERENGINE OFF
SECFILTERSCANPOST OFF