virtualpage
Username:  
Password:
  > Home
> User Guide
v Reference
    > Introduction
    > CROFT
    > BEE Variables
    > BEE Syntax
    v BEE Commands
       > Variable Operations
       > Conditional
       > Loop
       > Module Calling
       > Remote Calling
       > Authentication
       > Data Access
       > Socket
       v Special Functions
          o mailto
          o text
          o auth
          o scheme
          o output
          o sleep
          o virtualpage
    > Database Operation
    > Content Management
    > Objects and Classes
    > Interface with others
    o Glossary
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Reference >> BEE Commands >> Special Functions >> virtualpage <=  =>      <  1  >  
virtualpage – indicate a Virtual Page template page (optional)

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.

 

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd