BEE Script: virtualpage
BEE Tag: <beevirtualpage>
The command "virtualpage" output an HTTP page header with Status Code 200 (OK) to indicate that the page is a valid page. This is useful to overwrite the default Status Code 404 (Not Found) when the web server redirect a virtual page (missing page) to the template page.
This command is not required in most cases. However, if it is every used, it must be the first line of the template page before any output (even before the <html>).
The reason to have this command is that some browsers (notably Internet Explorer) and browser extension software trap the 404 Status Code and substitute the entire page with a "friendly" page or search-advertisement page. On such browers, the BEE Virtual Page mechanism (missing-page redirection to a template page that load real content based on the requested URL) will not work. This "virtualpage" command will "cheat" the browser or extension software into believing that the page is "real" and therefore not to alter it.
|