I agree. I am using mod_rewrite. The page is determined by a URL value of "webpage", so if the webpage recordset is empty, I assign the URL variable "webpage" the value of "page404" which accomplishes this for me.
BTW, if you leave the variable value blank, it does put that value (module) into default in the switch statement.