trouble with ampersands in urls not validating

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
davids355
Power Poster
Power Poster
Posts: 279
Joined: Fri Apr 04, 2008 10:08 am

trouble with ampersands in urls not validating

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: trouble with ampersands in urls not validating

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”