unique .htaccess issue
Let me first break down my folder structure for the directory in question.
/products/product.php <-- PHP/MySQL Page that recived variables from URL to pull specific products
/products/productCategory/productCategory.php <-- Pulls all products from database specificly for this productCategory
Ok here my setup goes like this. User first starts at a product category page that pulls all products from database for the user to then pick and choose a product they might want to see.
Once a person clicks on a product they get pointed out of this perticular product category directory and up a level to product.php.
The URL sent when a user clicks on a product looks like this, domainname.com/products/productCategory/productName.php
then .htaccess takes anything after products/ and writes the url out as the following.
Ok so if I type in domainname.com/products/productCategory/productName.php I do in fact get my URL rewrite to work and pull up that particular product. Problem I have now is that if I try to go back into my /products/productCategory/productCategory.php page nothing pulls up.
Here is my .htaccess file for my product.php page.
RewriteRule ^([^/]+)/([^/]+).php product.php?product_category=$1&product_name=$2 [NC]
Anyone know why this would fix my URLs for product.php but my product category pages wont pull up now??
Last edited by ubh; 11-26-2008 at 11:22 PM..