TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Tips & Tricks (http://www.talkphp.com/tips-tricks/)
-   -   Make html pages work like php (http://www.talkphp.com/tips-tricks/154-make-html-pages-work-like-php.html)

sam 09-06-2006 04:57 PM

Make html pages work like php
 
Lets say you have a html page on your web site that you really need to add dynamic elements to (i.e. product listing from a database etc).

You could create a new replacement php page but then you would have to update all your internal/external links and possibly loose your search engine rankings for your page.

Adding a following entry to your .htaccess file (if your web host allows this) will force your server to treat that html page as an ordinary php file: :D

<Files pagetitle.html>
ForceType application/x-httpd-php
</Files>

AlEast 09-14-2006 02:58 PM

Great tip.. I'm sure folks have wondered about something exactly like this

Killswitch 02-09-2007 01:00 PM

That is a great tip, I have no idea that could be done. Many thanks :D


All times are GMT. The time now is 01:36 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0