I'm taking the entire URI returned by mod-rewrite and looking up documents in a mysql database. It grabs the contents and then inserts them into the template. It's working flawlessly.
The other thing that works, because I throw a switch if the document ends with .css or .js, is that I can include files in my html page.
- Code: Select all
<link rel="stylesheet" href="/css/style.css" type="text/css" />
<script type='text/javascript' src='/js/script.js'></script>
These too come straight out of the database - so in effect I'm calling up three pages from the database when the user visits the site. Certainly, there are server use issues, but I'm sort of foregoing that part of things for the moment.
But, I don't really know how feasible this would be for greater use?