In WebHandler, ReadFile method, AFTER parent call.
Check the Return value there, and if it's 404 (page not found) then "rewrite" the p_FileName variable.
For example, I have a table "Quicklinks". So my code looks like this;
If returnValue = 404 ! page not found, so check quicklinks file to see if there's a match
Access:quickLinks.Open()
Access:quickLinks.UseFile()
Qui:Quick = sub(p_FileName,len(clip(self.site.WebFolderPath) & '\')+1,255)
If Access:QuickLinks.Fetch(Qui:QuickKey) = 0
Qui:full = clip(self.site.WebFolderPath) & '\' & Qui:Full
ReturnValue = PARENT.ReadFile(Qui:Full,p_Buffer,p_FileDate,p_FileTime,p_Parse,pShared)
end
Access:quickLinks.Close()
End
Cheers
Bruce