Sunday, March 23, 2008

Apostrophe with htaccess

David,
I'm trying to allow the apostrophe character in the product title I've added the following to search.php and product.php:
<?php
$q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],"&:'\.\/\(\)\+\,"):"");
?>

In the /include/admin I've done the following:
<?php
$record[$admin_importFeed["field_name"]] = tapestry_normalise($record[$admin_importFeed["field_name"]],"&:'\.\/\(\)\+\,");
?>

If I look int he mysql table for products, I see the ' (apostrophe)in the product names. If I search for the the product I see the full name including the apostrophe showing on the page. eg "Men's Shoes" but when I click the link, I see only the "Men" part shows up in the url. The url is getting cut off at the apostrophe. When I change from using se friendly / htaccess to regular urls it works, but of course I want SE friendly urls. :)

What should I look for in the htaccess to allow the apostrophe in urls? OR is that even what the problem is?