LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-30-2004, 01:35 PM   #1
kidestranged
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Rep: Reputation: 15
.htaccess


In Apache's httpd.conf file, there is a line like this -

AddType application/x-httpd-php .php .php3

That tells the browser to have PHP parse all pages ending with .php or .php3


I want to add extensions but only for some directories. Is this possible with an .htaccess file?

Thanks
 
Old 04-30-2004, 02:06 PM   #2
kidestranged
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Original Poster
Rep: Reputation: 15
I don't know why I didn't try it first but it works.

I just made an .htaccess file with this line

AddType application/x-httpd-php .html

and the html files were parsed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess Help GUIPenguin Linux - Security 6 02-22-2005 02:25 PM
.htaccess luca2005 Linux - Software 2 01-01-2005 07:38 PM
.htaccess kidestranged Linux - General 1 01-26-2004 10:18 AM
Htaccess DoobyWho Linux - General 4 04-28-2003 01:01 PM
.htaccess bretthoward Linux - Security 5 04-02-2001 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration