![]() |
| |||||||
| Web Hosting Discussions on all aspects of web hosting, choosing a host, reviews and technical things. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| How to parse .htaccess files as PHP? For parsing .html file you can add "AddType application/x-httpd-php .html" in .htaccess, but putting "AddType application/x-httpd-php .htaccess" in .htaccess it doesn't work (unbelievable ha ha) How can I adjust that in Linux Environment? |
| |||
| I wouldn't even think of trying to do that. Why expose server controls? The htaccess file is used to set server and environmental variables, if you want to expose those to the whole world just publish them in your html. Linux attempts to protect users from things that shouldn't be exposed for a very valid reason. Now all that being said.. it is just a text file and php can indeed parse it. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| In PHP, what function do I use to incorporate the name of files into PHP files? | sai14 | PHP | 4 | 07-14-2008 06:39 AM |
| .htaccess and .htpasswd I have them protecting files that but where is the password? | subhamoy | Web Hosting | 3 | 04-28-2007 01:38 PM |
| In PHP, what function do you use to incorporate the name of files into PHP files? | czjdell | PHP | 1 | 04-22-2007 05:23 PM |
| How can I create an .htaccess file on a Mac that will keep the .htaccess so I can upload to my webserver? | fivien | Web Hosting | 2 | 09-12-2006 03:08 PM |
| Can you mix in apache's htaccess with asp to create a login that will use the htaccess, but asp can also pick | joseph | Web Hosting | 1 | 08-22-2006 06:33 PM |