[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Ryan Carson wrote: > Ohh, First post, hello! > > Can’t you just do that through .htaccess also? Yes. Generally you should do things via the Apache config not .htaccess, if you can (i.e. if it isn't just a shared hosting account). But rather than rename the URL on the fly, you'd just tell Apache to use the PHP interpreter for handling the ".html" files. i.e. Add the extension to the bits that says... <IfModule mod_php5.c> AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps </IfModule> Of course doing this for all html files, on all sites, when only one page has PHP would be inefficent. One could also just invoke PHP for this one file. Renaming the page ".php" is probably simplest ;) Simon -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html