Page 1 of 1

trouble with ampersands in urls not validating

Posted: Sun Dec 06, 2009 8:50 pm
by davids355
I have just discovered a problem with the ugly urls on my site:
my urls are in the following format:

http://www.shareworld.co.uk/index.php?m ... required=1...

I use xml-sitemaps to create and submit sitemaps to Google. Howver, I have JUST realised that xml sitemaps is changing the url to the following:

http://www.shareworld.co.uk/index.php?m ... required=1...

Note that the ampersands are being re-coded as: &

I looked on the forum for xml-sitemaps and they say that this is the compliant way to display an ampersand. So as a result, when I click on any of these re-written urls, it takes me to the homepage, rather than the questions page.

Is there a way around this? Perhaps a rewrite rule in htaccess? Or do I just need to impliment pretty urls (which by the way I am happy to pay someone to do - but that probably goes in another section of the forum).

Thanks in advance for any replies.

Dave

Re: trouble with ampersands in urls not validating

Posted: Mon Dec 07, 2009 8:45 am
by Rolf
Is there a way around this? Perhaps a rewrite rule in htaccess? Or do I just need to impliment pretty urls (which by the way I am happy to pay someone to do - but that probably goes in another section of the forum).
Pretty url isn't difficult to add to your website, read #1 in this topic:
http://forum.cmsmadesimple.org/index.ph ... 912.0.html

Grtz. Rolf