.htaccess and forward slashes
Posted: Thu Jul 27, 2006 3:59 am
hello, I'm trying to make human readable urls, using the titles of products as link names with mod rewrite. One of my products has a forward slash in its name, trips everything over nicely. I've tried various methods of getting it working, and annoyingly my regex works in regex workbench just not with mod rewrite! ok see below,
.htaccess
my urls look like
http://webserver/website/web/productDet ... ct-name/-/
I'm stumped, think I'm just gonna ban forward slashes!
.htaccess
Code: Select all
RewriteEngine On
RewriteRule ^productDetails/-/(.*)/-/(.*)/-/$ productDetails.php?category=$1&product=$2 [L]http://webserver/website/web/productDet ... ct-name/-/
I'm stumped, think I'm just gonna ban forward slashes!