Re:everlasting urls
« on: February 11, 2006, 12:05:32 PM »
Hey, about the problem with pages being created that never end such as /content/content that doesnt exist/etc/etc
i found the culprits, they are handsets that have slashes in the name....such as Fisio 310/311/312 which is transfering into the url. Could you give me some tips on how to avoid this please? I tried stripslash but then it didn't match the mysql database name and wouldnt find it :( Please help.
Example url....[ External links are visible to forum administrators only ]
Re:everlasting urls
« Reply #1 on: February 11, 2006, 02:06:51 PM »

you should urlencode your URL to convert special characters to %xx form. For instance, "/" should be replaced with "%2F" in the URL.
Re:everlasting urls
« Reply #2 on: February 11, 2006, 03:40:35 PM »
Finally...i spent 3 hours trying to fix this with urlencode, it didnt work with just urlencode i have to do a str_replace too urlencode (str_replace("/","%2F",$name));

Ok all working now, thanks for great sitemap hehe