From users-return-117192-archive-asf-public=cust-asf.ponee.io@httpd.apache.org Fri Mar 23 01:28:10 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AC83B180676 for ; Fri, 23 Mar 2018 01:28:09 +0100 (CET) Received: (qmail 60653 invoked by uid 500); 23 Mar 2018 00:28:03 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 60640 invoked by uid 99); 23 Mar 2018 00:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2018 00:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DD7A9182DCB for ; Fri, 23 Mar 2018 00:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id DZb7-g_7cman for ; Fri, 23 Mar 2018 00:28:01 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 909435F173 for ; Fri, 23 Mar 2018 00:28:00 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id x205-v6so15836634lfa.0 for ; Thu, 22 Mar 2018 17:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=fwrU+jW27J+6VE4PXEKHUzrbNEDETmtK/B1/bAEh/yY=; b=m168YEqUA7IpgcyP7Qvrp+71z8DRGSbpLzUAUWbgFW52ZKp8nRYYAdDmkSlvyXe8u9 FrP/UZm8nX2rZOXdy34+55q/BOu3mDHkO4UzrjkhI8krAHWIB2u3lxd3dj05AVw/vtVl Xdad7QCAEN3yzXPGr+OVMhoKlC75yT3iqqCppGDGJFnVL2d/AcjH8pbtrA1nWz5GEntD uALGpYzwyPsqoGdK5XfsYZ8oG6L8ohm7bhJvW33wu+z3NGUAkeXcvbKYom2tXqXHOjVQ EKM/v7JvmFpBobPzm+y2ZgHw9/GMqlmsYYQ9wXvDmUUXMUEI0CN3eEK3YZbFTcFPKKDu ciCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fwrU+jW27J+6VE4PXEKHUzrbNEDETmtK/B1/bAEh/yY=; b=d7i1uMibXxUL5YkGAwch5zBgZ/0UNj9hhic5gyfaHMoJw+yAmhMjgQnn76I2HaVIFv L3zdokIs2PX3nPOPC6cv3rvIXiHva43/YfH7CqarExTYXi8+KQHXDTyrcZsHJwSV09q4 8S04dF8nqLtCajG09CqfyQfafDONk2omyplK6jAzwObZvTjFYs1XzlBrJB40MHVPEkQB Tg5MyQ6dftc4u6hw9cju345cbk7s9Rj9/wmYHm1r0JQpTCOtTr1I6NQYZ9VoMUpS099z ui6j/HYv8CRgY/p6XHMNZddQYmFToPV7B8V5EAGbObWHr19Fo60iFdVKS2qkQgc6+lD8 GHog== X-Gm-Message-State: AElRT7EMOiwcgWZD4NhwrLk+I42JGr6/nB2bnto+3iKdj131dpYpzZNj zlZh6/lPvU3VS1JiTTpfZOx7WwE+XDb2ZPkqyb5Bqw== X-Google-Smtp-Source: AG47ELs6QkzjlHoG3eg/KPczYC5kzcNurcSpZl3CdrYcqeU8c3bd9XPkXBJ0LVbdquWlxtCL2BG23nQlKBYdeNRYMJ8= X-Received: by 10.46.54.10 with SMTP id d10mr10821589lja.31.1521764879824; Thu, 22 Mar 2018 17:27:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:9515:0:0:0:0:0 with HTTP; Thu, 22 Mar 2018 17:27:59 -0700 (PDT) From: Rajib Karmakar Date: Fri, 23 Mar 2018 05:57:59 +0530 Message-ID: To: users@httpd.apache.org Content-Type: multipart/alternative; boundary="f4f5e8076bd017fd980568097f53" Subject: [users@httpd] uniqueness for each rules so that it hit to specific page. --f4f5e8076bd017fd980568097f53 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Issues Facing for multiple htaccess rule for dynamic slug. Mainly for an eCommerce website starting from which has Department,category,subcategory,subsubcategory and product Sitepath are follows from department to subsubcategory http://www.mysite.com/department http://www.mysite.com/department/category/ http://www.mysite.com/department/category/subcategory http://www.mysite.com/department/category/subcategory/subsubcategory Without department path from category to subsubcategory http://www.mysite.com/category/ http://www.mysite.com/category/subcategory http://www.mysite.com/category/subcategory/subsubcategory All the rules are written like below #Rule 1 RewriteRule ^([A-Za-z0-9-]+)/?$ page1.php?department=3D$1 [L] Site Path - http://www.mysite.com/clothing #Rule 2 RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ page2.php?department=3D$2&category=3D$1 [L] Site Path - http://www.mysite.com/clothing/women #Rule 3 RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ page3.php?department=3D$3&category=3D$2&subcategory=3D$1 [L] Site Path - http://www.mysite.com/clothing/women/sweaters #Rule 4 RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ page4.php?department=3D$4&category=3D$3&subcategory=3D$2&subsubcategory=3D$= 1 [L] Site Path - http://www.mysite.com/clothing/women/sweaters/pullovers #Rule 5 RewriteRule ^([A-Za-z0-9-]+)/?$ page5.php?category=3D$1 [L] Site Path - http://www.mysite.com/women #Rule 6 RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ page6.php?category=3D$2&subcategory=3D$1 [L] Site Path - http://www.mysite.com/women/sweaters #Rule 7 RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ page7.php?category=3D$3&subcategory=3D$2&subsubcategory=3D$1 [L] Site Path - http://www.mysite.com/women/sweaters/pullovers #Rule 8 RewriteRule ^product/([A-Za-z0-9-]+)/([^./]*)/?$ product.php?slug=3D$2&seller=3D$1 [L] Site Path - http://www.mysite.com/product/women-pullover-sweater-shirt/xyz Other Pages Rules except product related #Rule 9 RewriteRule ^user/wishlist/?$ wishlist.php [L] Site Path - http://www.mysite.com/user/wishlist #Rule 10 RewriteRule ^cart/?$ cart.php [L] Site Path - http://www.mysite.com/cart Conflict occurs between 1. Rule 1 & Rule 5 & Rule 10 2. Rule 2 & Rule 6 & Rule 9 3. Rule 3 & Rule 7 & Rule 8 How to make uniqueness for each rules so that it hit to specific page and no conflict occurs. Sincerely --------------------------------------------------------- Rajib Karmakar Creative Web Logo Technologies Website: http://www.creativeweblogo.com Mobile: +919874704940 Skype: creative.web.logo =C2=A9 2008-2018 Creative Web Logo Technologies. --f4f5e8076bd017fd980568097f53 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Issues Facing fo= r multiple htaccess rule for dynamic slug.
Mainly for an eCommerc= e website starting from which has Department,category,subcategory,subsubcat= egory and product

Sitepath are follows from depart= ment to subsubcategory
http://www.mysite.com/department/category/subcategory/subsubcategory<= /div>

Without department path from category to subsubcat= egory

= All the rules are written like below
#Rule 1
RewriteRul= e ^([A-Za-z0-9-]+)/?$ page1.php?department=3D$1 [L]

#Rule 2
RewriteRule ^([A-Za-z0= -9-]+)/([A-Za-z0-9-]+)/?$ page2.php?department=3D$2&category=3D$1 [L]

#Rule 3<= /div>
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ p= age3.php?department=3D$3&category=3D$2&subcategory=3D$1 [L]
Site Path -=C2=A0 http://www.mysite.com/clothing/women/sweaters

<= div>#Rule 4
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z= 0-9-]+)/([A-Za-z0-9-]+)/?$ page4.php?department=3D$4&category=3D$3&= subcategory=3D$2&subsubcategory=3D$1 [L]
Site Path -=C2=A0 http://ww= w.mysite.com/clothing/women/sweaters/pullovers

#Rule 5
RewriteRule ^([A-Za-z0-9-]+)/?$ page5.php?category=3D$1 = [L]

#Rule 6
Rew= riteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ page6.php?category=3D$2&su= bcategory=3D$1 [L]
#Rule 7
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/= ([A-Za-z0-9-]+)/?$ page7.php?category=3D$3&subcategory=3D$2&subsubc= ategory=3D$1 [L]

#Rule 8
RewriteRule ^product/([A-Za= -z0-9-]+)/([^./]*)/?$ product.php?slug=3D$2&seller=3D$1 [L]

Other Pages Rules except product related<= /div>
#Rule 9
RewriteRule ^user/wishlist/?$ wishlist.php [L]<= /div>

#Rule 10<= /div>
RewriteRule ^cart/?$ cart.php [L]
Site Path -=C2=A0 http://www.mysite.com/cart


Conflict occurs between
1. Rule 1= & Rule 5 & Rule 10
2. Rule 2 & Rule 6 & Rule 9
3. Rule 3 & Rule 7 & Rule 8

How t= o make uniqueness for each rules so that it hit to specific page and no con= flict occurs.


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

Creative Web Logo Technologies
<= /div>
--f4f5e8076bd017fd980568097f53--