? |
PHP FAQ
PHP Articles
PHP Help
Bulletin Board
PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help
C# Help
|
? |
?Setting PHP as Default Type in .htaccess |
Author:??(66.62.43.---)
Date:???01-09-04 10:02
Hello,
Is there a way to specify that any file, by default, should be parsed as PHP? I know you can say
DefaultType text/html
In .htaccess and have a file named "hello" with no extension be returned as text/html.
How can we do the same thing with "hello" only make it get parsed with PHP first?
|
|
?Re: Setting PHP as Default Type in .htaccess |
Author:??(66.62.43.---)
Date:???01-13-04 12:51
bastien koert emailed me to say...
---
Say you have a page called "about.php". Rename it to just "about", and add this to your Apache config or htaccess file:
ForceType application/x-httpd-php
hth
bastien
---
Thanks! :-)
|
|
|