[thelist] Efficient Redirect: html to php

Joe Crawford joe at artlung.com
Mon Mar 29 19:17:35 CST 2004


On Mon, 29 Mar 2004 live4bacon at optonline.net wrote:
> for the sake of general knowledge, I would be interested in other
> solutions if anyone cares to share.

Another solution, use something like this:
http://lab.artlung.com/php/php-php3-mod-rewrite/

Place this in your apache config, or at the root of your site as php files
#Make all those html pages really be php pages
RewriteEngine On
RewriteRule  ^(.+).html $1.php

Now, with this solution *all* html files will get aliased, so you could do
it on a per-directory basis for simplicity.

	Joe
--
Joe "ArtLung" Crawford   AIM:artlung   Phone:619-516-4550
LAMP Host Evangelist, Web Designer, Web Developer, WebSanDiego.org List Guy
http://joecrawford.com/  http://lamphost.net/  http://artlung.com/
http://artlung.com/blog/  http://sandiegobloggers.com/
http://sandiegoblog.com/  http://websandiego.org/



More information about the thelist mailing list