Sitephoria Knowledge Base

Frequently Asked Questions about Sitephoria Hosting
It is currently Thu Nov 23, 2017 10:04 am

All times are UTC - 6 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Tue Jan 28, 2003 11:53 am 
Offline
Site Admin

Joined: Tue Mar 05, 2002 4:22 am
Posts: 107
Question:

Is there a way i can get .html files interpreted as .php
file by putting something in my .htaccess file?

I want to add PHP code to all my .html pages but don't want to rename
them. (people have the .html pages bookmarked, the search engines
know about .html pages, etc...)

Answer:

Create a file called .htaccess in the folder which contains the .html files which contain the PHP code and add this line:

AddType application/x-httpd-php .html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group