English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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?

2007-05-01 07:30:56 · 3 answers · asked by kruno55555tisljar 1 in Computers & Internet Programming & Design

3 answers

Why the heck do you want to parse an .htaccess file as php? What possible use would that ever have?

Answer: don't do it.

2007-05-01 08:56:12 · answer #1 · answered by Nisovin 5 · 0 0

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.

2007-05-01 15:32:19 · answer #2 · answered by Tracy L 7 · 0 0

How are you modifying this document? if you're modifying it on a homestead windows device and the FTPing it, the line endings might want to be incorrect. confirm you move it in ASCII mode (as hostile to binary mode) and that could want to favor to fix it.

2016-12-05 04:24:48 · answer #3 · answered by kasahara 4 · 0 0

fedest.com, questions and answers