This Post
PermalinkURI
URI Label
Revisions
Export:
XML (With Files)
PNG Image
Archives
September 2010 (1)March 2010 (1)
January 2010 (1)
November 2009 (1)
July 2009 (1)
January 2009 (3)
December 2008 (1)
Sections
Code Tutorial (4)Misc (2)
QRCode Button (1)
Server Admin (2)
Os
Debian (1)Code Tags
PHP (3)Mysql (1)
Bash (1)
Tools
Show/Hide QR CodeShow/Hide Keys
If you are like me, you dislike the .php extension for web pages that display content, eg /contactus.php . To me this is a web page that is displaying HTML, so lets give it an .html suffix. but the easist way to implements templates is to use html.
To achieve this easily just create a .htaccess file to redirect .html's to .php.
Requirements: are apache and mod_rewrite
More Info: http://www.kuro5hin.org/story/2003/7/31/2335/08552
To achieve this easily just create a .htaccess file to redirect .html's to .php.
(The QSA just forwards all variables to the .php script).htaccess code:
RewriteEngine On
RewriteRule (.*).html $1.php [QSA]
Requirements: are apache and mod_rewrite
More Info: http://www.kuro5hin.org/story/2003/7/31/2335/08552