View previous topic :: View next topic |
Author |
Message |
lamina -
Joined: 25 Apr 2006 Posts: 20
|
Posted: Fri Feb 19, 2010 10:02 am Post subject: Sitemap generating forward slash/back slash combination |
|
|
Hi,
I have been trying to use a PHP dynamic sitemap generator which works fine 'most of the time'.
However, a number of pages produce the following type of result:
<url>
<loc>http://www.mysite.com\/products.htm</loc>
<lastmod>2010-02-19T08:54:59+00:00</lastmod>
<priority>0.5</priority>
<changefreq>monthly</changefreq>
</url>
with a forward slash/back slash combination. The complete sitemap will contain the same URLs with a properly formatted entry in the sitemap - ie without the extra slash.
The script author has tested this on an Apache server and cannot replicate this error. I am running PHP 5.2.9.1 and Abyss 2.6.
Any suggestions would be much appreciated.
Regards
Richard |
|
Back to top |
|
|
Toasty -
Joined: 21 Feb 2008 Posts: 298 Location: Chicago, IL
|
Posted: Sun Feb 21, 2010 3:56 pm Post subject: |
|
|
You're probably using XML-Sitemaps Generator. I had nothing but problems with that, and ended up writing my own.
I would suggest checking the configuration, It may be trying to escape slashes (\\), but since the second slash is a forward slash "/" there's no reason to escape it.
Look in the config for something like this:
http://www.mysite.com\\\/products.htm
or
http://www.mysite.com\/products.htm
or even more likely:
http://www.mysite.com\
and remove the trailing slash, or change it to /
That -should- fix it. The reason you couldn't replicate this on Apache would deal with your site map software, and the server software isn't a factor in that. If all else fails, write the company back and tell them your generator is failing hard. If you got it from where I think, you'll probably get a rude response, but at least they'll help you. _________________ Audit the secure configuration of your server headers! |
|
Back to top |
|
|
lamina -
Joined: 25 Apr 2006 Posts: 20
|
Posted: Sun Feb 21, 2010 6:03 pm Post subject: |
|
|
Hi Toasty,
Thanks for the reply. I have had a look at the config for my Abyss server - there's no sign of any \ combinations :-(.
The script author will, I think just say that the script works OK - which it does on Apache.
I might follow your route, and dust off my limited (ie virtually non-existent) php skills and write my own.
Many thanks
Richard |
|
Back to top |
|
|
Toasty -
Joined: 21 Feb 2008 Posts: 298 Location: Chicago, IL
|
Posted: Tue Feb 23, 2010 4:04 pm Post subject: |
|
|
Well, it would be in the Sitemap config, not Abyss's config.
As for writing your own sitemap, I'd offer mine, but it is based directly off of the database, and wouldn't be of any value to anybody else.
Good luck with that! _________________ Audit the secure configuration of your server headers! |
|
Back to top |
|
|
lamina -
Joined: 25 Apr 2006 Posts: 20
|
Posted: Thu Feb 25, 2010 3:36 pm Post subject: |
|
|
Thanks Toasty - I have tried altering the Sitemap config but nothing seems to get rid of this annoying \/ - I have given up trying to figure this out :-(
I will persevere with writing my own sitemap - but I'm not entirely sure if I'm young enough to complete it :-)
Regards
Richard |
|
Back to top |
|
|
Toasty -
Joined: 21 Feb 2008 Posts: 298 Location: Chicago, IL
|
Posted: Wed Mar 03, 2010 4:20 am Post subject: |
|
|
I'm not sure how your site is configured, but knowing the syntax of the sitemaps was the hardest thing for me -- which isn't too bad.
Make sure to use Google Webmaster Tools to validate your sitemap too, that will help you make sure your generator is the best it can be. _________________ Audit the secure configuration of your server headers! |
|
Back to top |
|
|
sandypeter111 -
Joined: 11 Nov 2008 Posts: 19
|
Posted: Wed Mar 03, 2010 12:56 pm Post subject: RE |
|
|
If you could tell that how your site has been configured then i could be able to give you the right place to go to have solution of the explained problem.
=========================
Web Based Project Management Software |
|
Back to top |
|
|
lamina -
Joined: 25 Apr 2006 Posts: 20
|
Posted: Fri Mar 05, 2010 11:08 pm Post subject: |
|
|
Hi ,
Thanks for all your replies and suggestions.
I have written my own sitemap generator and while I was at it I managed to write an 'auto Tweet' program - every little bit helps in the endless struggle to get up the Google page Ranks :-))
Again, many thanks.
Richard |
|
Back to top |
|
|
|