Ok, I'm trying to use mod_rewrite to rewrite URL's of the form
/promotional-products/product.php to /promotional-products/products.php?cat=product
E.G.
/promotional-products/t-shirts.php no longer exists as a php file. Instead products.php will now create the page from the database, but for search engine reasons we still want the user / search engine to be able to click on the link and be taken to the following address: /promotional-products/products.php?cat=t-shirts Here is the regex I have:
RewriteEngine On
RewriteRule ^/promotional-products/*$1 /promotional-products/products.php?cat=$1 [PT]
I've tried many permutations of this from many separate tutorials, but nothing seems to work (mod_rewrite is installed and enabled) Can someone please point me in the right direction?
/promotional-products/product.php to /promotional-products/products.php?cat=product
E.G.
/promotional-products/t-shirts.php no longer exists as a php file. Instead products.php will now create the page from the database, but for search engine reasons we still want the user / search engine to be able to click on the link and be taken to the following address: /promotional-products/products.php?cat=t-shirts Here is the regex I have:
RewriteEngine On
RewriteRule ^/promotional-products/*$1 /promotional-products/products.php?cat=$1 [PT]
I've tried many permutations of this from many separate tutorials, but nothing seems to work (mod_rewrite is installed and enabled) Can someone please point me in the right direction?