XML Sitemaps Generator

Author Topic: PHP dynamic site returns "400 Bad Request" as title for most pages  (Read 28186 times)

dcarrco

  • Approved member
  • *
  • Posts: 2
hi.  great thing you're doing with the free sitemap generator.  we are switching from a large static site to one i have coded in php and using mysql as a backend.  i have been using your tool to see how google will view our site, as the static one is rated quite highly right now and i don't want to lose that position (or lose my job).  if i run your free generator on the rough site, which isn't online yet ([external links are visible to admins only]) the sitemap which is generated has a few titles, and then the rest say "400 Bad Request" but i'm not sure whats happening.

If i click the links, the pages have the correct titles.  any suggestions?
thanks very much

d.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10623
Re: PHP dynamic site returns "400 Bad Request" as title for most pages
« Reply #1 on: December 19, 2006, 11:14:14 PM »
Hello,

you should "urlencode" your links in html source, for instance " " (space) character is not allowed in URLs, it should be replace with "%20".
This URL is not correct:
Code: [Select]
search.html?cat=item&type=item&value=Vermont Additionsthis one is correct:
Code: [Select]
search.html?cat=item&type=item&value=Vermont%20Additions
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.

dcarrco

  • Approved member
  • *
  • Posts: 2
Re: PHP dynamic site returns "400 Bad Request" as title for most pages
« Reply #2 on: December 20, 2006, 03:39:47 PM »
thanks.  i'll try that.

 

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