httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajib Karmakar <creativewebl...@gmail.com>
Subject [users@httpd] .htaccess rule match keyword
Date Mon, 06 Feb 2017 10:34:55 GMT
Hi,

RewriteRule ^cart(.*)$ cart.php

https://www.berkshirefurniture.com/cart/




https://www.berkshirefurniture.com/carter-upholstered-bed/p/bmV3LWFycml2YWw=

## For showing leaf sub category of item
RewriteCond %{REQUEST_URI} !^/([^/]*)/p
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ leafsub-category-gallery.php?
slug=$1&subcat=$2&leafsubcat=$3 [L,NC]



First four letter of products url "carter" to "cart" matched with the cart
page link and that's the reason it moved to the cart page.


Is it possible using htaccess rewriting match the specific slug and forced
not to redirect it's default rules i.e it matched the full slug and
redirect to specific rule only.

Sincerely
---------------------------------------------------------
Rajib Karmakar

Creative Web Logo Technologies
Website: http://www.creativeweblogo.com
Mobile: +919874704940
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.

Mime
View raw message