httpd-users mailing list archives

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

RewriteRule ^cart(.*)$ cart.php

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

Rajib Karmakar

Creative Web Logo Technologies
Mobile: +919874704940
Skype: creative.web.logo
© 2008-2017 Creative Web Logo Technologies.

View raw message