RE: [PHP-DB] database-to-site structure advice?

From: Date: Sun, 17 Dec 2000 12:42:04 +0000
Subject: RE: [PHP-DB] database-to-site structure advice?
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-30730@lists.php.net to get a copy of this message
Hi, > As you can prob. tell, I'm good at databases and html, but not > sure how to essentially make 'relational pages' that don't can > persist as tables instead of filesystem pages. you can use apache's mod_rewrite for that. make sure that mod_rewrite is compiled into apache (or enabled as a DSO) and add something like that to your httpd.conf: RewriteEngine On RewriteRule ^/(.*) /index.php?page=$1 [QSA,L] now if someone requests http://yoursite/blah.php, the actual request will be http://yoursite/index.php?page=blah.php and you can retrieve the blah.php from your database and display. if someone requests http://yoursite/, the $page variable will just be empty and you can display the navigation. Rgds, Tfr --==< tfr@cafe.ee >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--

« previous php.general (#30730) next »