Welcome to WebmasterWorld Guest from 18.207.132.114

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

I want to keep my .html extensions

but use some PHP includes... modrewrite?

     
1:54 am on Dec 4, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 6, 2003
posts:2523
votes: 0


Please do my homework for me. I will buy you a cookie (or a beer) at the Orlando PubCon. :D

Okay - I have a PHP-based banner rotation "include" script but it requires that the file extension end in PHP.

I want to implement this script on several different websites - but all the indexed pages have .html extensions (and there are 2K+ pages).

I hacked around the problem by having the ad.php file be inserted via an <iframe> tag, but it is not the best solution, especially since iframes don't work with older browsers - and you can scroll around the iframe page.

I know that I could have mod rewrite send all .html requests to the new PHP pages - but is there a way to tell the server that it should .html files to have php instructions in it?

That seems much more efficient.

Thank you. (p.s. make that 2 chocolate cookies!).

2:15 am on Dec 4, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Cheat sheet: [webmasterworld.com...] Message #9

Jim