DevHeads.net

Postings by Rajib Karmakar

.htaccess rule match keyword

Hi,

RewriteRule ^cart(.*)$ cart.php

<a href="https://www.berkshirefurniture.com/cart/" title="https://www.berkshirefurniture.com/cart/">https://www.berkshirefurniture.com/cart/</a>

<a href="https://www.berkshirefurniture.com/carter-upholstered-bed/p/bmV3LWFycml2YWw=" title="https://www.berkshirefurniture.com/carter-upholstered-bed/p/bmV3LWFycml2YWw=">https://www.berkshirefurniture.com/carter-upholstered-bed/p/bmV3LWFycml2...</a>

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

https://www.berkshirefurniture.com Issue on .htaccess rule.

Good morning Team,

Below 2 rule i used for 2 different pages but 2nd URL when i click then it
nothing display any products, it show cart page.