I would like my 404 error page (which is actually running my content management system) to set the CGI variables that get returned to the client.
For example, if you go to http://www.datacollaborative.com/Products
, there is no real products page, so the server goes to the 404 page (template_a.cfm), which looks at the URL and creates the correct page on the fly.
However, some of the cgi variables still return the name of the 404 page, instead of "Products" - I am concerned that this will cause Search Engines to not index "Products" or any of my other pages either.
If you go to http://www.datacollaborative.com/test2
, you can see a dump of the CGI structure, and you will see "template_a.cfm" prominently mentioned.
So I have two questions. First, do those CGI variables normally get returned to the client, and if so, are they going to confuse search engines? (that was actually one question)
Second, if this is a problem, is there a way I can set those CGI variables? I tried doing a cfset, and that did not work (no surprise). I also tried something like this:
<cfheader name="Content-Location" value="Products">
and that did not work either.
Thanks for any help.