Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Robots, Query Strings, and Ampersands

Status
Not open for further replies.

pl12987

Programmer
Aug 2, 2001
53
US
I WANT robots to hit my site for search engine indexing. But I have a dynamic site with query strings. (e.g., mytemplate.cfm?parameter1=x[ampersand]parameter2=y

When the bots go to a page for a URL they have, they escape the ampersand delimiters into [amperand-amp-semicolon] which ruins the URL and throws an exception. How can I intercept these bad URLs and rewrite them to true ampersands so they work?
 
& is the correct way to do it and should work... ===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===
 
that was supposed to be & ===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===
 
I tried it on this site, and it worked! The character code got resolved to real ampersands on the fly. Why doesn't it work on my site?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top