.htaccess rule match keyword

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Mobile: +919874704940 
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux