XML Sitemaps Generator

Author Topic: Re:everlasting urls  (Read 30120 times)

d.bybordi

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 11
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 admins only]

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re:everlasting urls
« 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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

d.bybordi

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 11
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 


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re:everlasting urls
« Reply #3 on: February 11, 2006, 08:51:06 PM »
You are welcome! :)
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2