Help with XML Site Map

Xml does not allow most special characters (such as &,;,%,etc...).

To use these in your markup, (although I would avoid putting querystrings in a sitemap file. Try using mod_rewrite if you are running apache, or http://www.isapirewrite.com/ if you're running windows) These will rewrite your urls into "my-page-name/" instead of "page.php?i=1&p=2".

Anyway, back to the markup.

For & symbols, use & wherever you need an amphersand and you should be fine. I would also kill any semi-colons you have in there just to be safe.

Here is a link to other codes for special characters:
http://www.learn-html-tutorial.com/Images/Entities.gif

Hope this helps.
 
Thanks man! It helps a lot!

But I have a hosted website. How can I get mod_rewrite to work on a hosts server?
 
in your control panel (wherever it may be) for your hosting, you should have an option somewhere for re-write urls or something like that. If you don't, contact their technical support and ask them about the ability to re-write urls for search engine optimization.
 
Back
Top Bottom