GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP question (https://gfy.com/showthread.php?t=442006)

Lester 03-09-2005 11:37 AM

PHP question
 
Can I map .htm or .html pages to parse php code????
it would be a .conf issue right???


I'm doing something for a friend on their "virtual account" and they need to have a bunch of pages renamed .php to achieve what they want....and then of course the links need to be chased down.....


arghhhhhh

StuartD 03-09-2005 11:41 AM

Yup, it's possible... just add .htm and .html to your php line in your http.conf file.

AddType application/x-httpd-php .htm .html .php

budz 03-09-2005 11:48 AM

I think you can add that line to your htaccess also

Lester 03-09-2005 11:50 AM

That's what I figured.....

can't help this guy out wth his stuff
but now I know...

Lester 03-09-2005 11:52 AM

Is adding something to htaccess an option???

For the htaccess route would work I'd have to place a htaccess file in the "non-members" public area right??

calmlikeabomb 03-09-2005 12:25 PM

hey lester,

That is an option just look for the AllowOverride directive in httpd.conf and set it accordingly.

AllowOverride controls what directives may be placed in .htaccess files. It can be 'All', 'None', or any combination of the keywords.

good luck

swedguy 03-09-2005 12:27 PM

Add this to your .htaccess

Quote:

AddType application/x-httpd-php .html

Lester 03-09-2005 04:27 PM

Thanks for the tips....................


All times are GMT -7. The time now is 06:02 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123