Sitemap generating forward slash/back slash combination

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
lamina
-


Joined: 25 Apr 2006
Posts: 20

PostPosted: Fri Feb 19, 2010 10:02 am    Post subject: Sitemap generating forward slash/back slash combination Reply with quote

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 View user's profile Send private message
Toasty
-


Joined: 21 Feb 2008
Posts: 298
Location: Chicago, IL

PostPosted: Sun Feb 21, 2010 3:56 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
lamina
-


Joined: 25 Apr 2006
Posts: 20

PostPosted: Sun Feb 21, 2010 6:03 pm    Post subject: Reply with quote

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 View user's profile Send private message
Toasty
-


Joined: 21 Feb 2008
Posts: 298
Location: Chicago, IL

PostPosted: Tue Feb 23, 2010 4:04 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
lamina
-


Joined: 25 Apr 2006
Posts: 20

PostPosted: Thu Feb 25, 2010 3:36 pm    Post subject: Reply with quote

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 View user's profile Send private message
Toasty
-


Joined: 21 Feb 2008
Posts: 298
Location: Chicago, IL

PostPosted: Wed Mar 03, 2010 4:20 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
sandypeter111
-


Joined: 11 Nov 2008
Posts: 19

PostPosted: Wed Mar 03, 2010 12:56 pm    Post subject: RE Reply with quote

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 View user's profile Send private message
lamina
-


Joined: 25 Apr 2006
Posts: 20

PostPosted: Fri Mar 05, 2010 11:08 pm    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group