"Matthew Walker" <[EMAIL PROTECTED]> wrote: > So, can someone give me the spot to look in the documentation to find > out how to make this switch?
There are multiple solutions. In a nutshell here's what I do. I add directives to the VirtualHost block for the site which point web requests for certain pages to a master script that generates a number of pages with similar database-driven content. Here's one such line. Any file beginning with "photo_gallery_", followed by 1 or more digits and ending in .html is handled by template_1.php. AliasMatch ^/photo_gallery_[[:digit:]]{1,}.html$ template_1.php For this particular site, template_1.php actually handles nearly all of the web requests for the site. It consists of HTML code generating the basic physical appearance of the site, then calls other scripts to generate the HTML <head> section, breadcrumb trail, etc. and uses an include() statement to load the appropriate PHP script that generates the bulk of the page's content. In this case that script is inc_page_news.php. In inc_page_news.php the following code extracts the page number: ereg( '/news_([[:digit:]]{1,}).html', $SCRIPT_NAME, $regs ); if ( ! empty( $regs[1] ) ) { // Set page number. $page = $regs[1]; } Then a database query is performed to extract and build the page content. I wrote about the topic a while back on this list. If you're interested see: http://marc.theaimsgroup.com/?l=php-general&m=98618455619989&w=2 A few months ago I wrote a script that controls ~40 product pages on each of about 35 sites using PHP/MySQL and Apache mod_rewrite. Prior to that the pages were static and changes were done manually which was an extremely long process for those involved (imagine changing layouts and fonts on 1,000+ static pages with no CSS). Now changes can be made across all sites, products or combinations thereof in seconds. Sites, products, images, meta tags, image tags, etc. are now entirely administered through a web interface I built. Using AliasMatch in Apache as I described above all product pages are handled by a single PHP script which parses the URL for the site name and product name and pulls data from a number of tables and handles a few special cases programmatically, then generates the page. Here are a couple of the URLs. You'll notice they aren't the prettiest of pages, but the goal was to drive traffic to the sites from search engines, convert a high % of visitors to sales and allow the site to be administered by a non-programmer and implement changes rapidly. http://www.3rackbids.com/products/pallet_rack.html http://www.3-materialhandlingequipment-bids.com/products/pallet_rack.html If you want to browse a couple of my side projects you'll see I implement the same practices there too. http://www.sexcriminals.com/ (not an adult content site) http://www.tysonchandler.com/ HTH, -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]