XML Sitemaps Generator

    Advanced search
Sitemap Generator Forum
July 20, 2008, 08:09:18 AM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Sitemap software 2.9 released - Email notifications, html sitemap customizing and more
6811 Posts in 1679 Topics by Members
Latest Member: randy.slabey
Pages: [1]
  Print  
Author Topic: Re:everlasting urls  (Read 9863 times)
d.bybordi
Registered Customer
Jr. Member
*
Posts: 11


View Profile
« 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 Sad Please help.
Example url....[external links are visible to admins only]
Logged
admin
Administrator
Hero Member
*****
Posts: 2837


View Profile
« Reply #1 on: February 11, 2006, 02:06:51 PM »

Hi,

you should urlencode your URL to convert special characters to %xx form. For instance, "/" should be replaced with "%2F" in the URL.
Logged

d.bybordi
Registered Customer
Jr. Member
*
Posts: 11


View Profile
« 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 

Logged
admin
Administrator
Hero Member
*****
Posts: 2837


View Profile
« Reply #3 on: February 11, 2006, 08:51:06 PM »

You are welcome! Smiley
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!