Results 1 to 2 of 2
Jun 2, 2003, 00:41 #1
- Join Date
- Jun 2003
- 0 Post(s)
- 0 Thread(s)
Bug in search engine friendly urls
Try going to http://www.sitepoint.com/article//485
Your technique is wrong - you need to do this:
$var_array = explode("/",$PATH_INFO);
Instead of that - use:
$var_array = explode("/",$pi);
That will replace any two or more slashes(//-/*n) with a single /.
Thats a good fix - and wont hog the CPU.
Jun 2, 2003, 01:20 #2
Their method is correct. Doing a preg_replace on every uri is unnecessaire since the articles are linked correctly. If a user changes the uris, don't expect them to work correctly.