Some of my dynamic Cold fusion pages with url parms have been indexed in search engines.
However the search engines have added some hex values into the query string and it
throws an error when people link back to my page as my cold fusion code is expecting url parms that cant now be found due to the extra hex characters in cgi.string
Here is the error:
HTTP Referrer http://us.m2.yahoo.com/w/onesearch?.lang=en&p=housesitting+in+Tampa&.tsrc=apple&submit=oneSearch&tsrc=apple&first=1
Query String MEM=2145548445&%253Bci=Tam
HTML Code Format <PRE>Element CI is undefined in URL. <br>The error occurred on line 3.</PRE>
So the search engine has added %253B - and cold fusion now cant find url.ci
How do I get around this so I can get the value of url.ci or remove %253B
I understand cgi-query-sting is read only so cant change it?
it should not, unless your query string originally was malformed and contained characters that had to be url-encoded but were not.
but to get around your current problem:
at the very top of your pages loop over URL collection and set new url vars without %3B in the name (see note below why it is %3B). see attached code.
NOTE: %253B decodes to %3B, which is url-encoded ; (semicolon), so the attached code replaced %3B in the url var names
Open in new window