I have written a CMS
that allows for control of the .htaccess file through administration. Everything is fine on my wamp on my computer and the updates occur and the .htaccess is rewritten as designed. However, on the a shared host on the net the script returns the update/rewrite page as a blank page with no source.
Viewing through the js console in chrome it flashes the following error which I was able to catch in print screen:
Though the update page is returned blank and the 500 error flashes the site itself is not affected and renders although an internal error has occurred.
My question... Is there perhaps a setting in php.ini
or somewhere else on the server that I am not aware of that would prevent the .htaccess file from being dynamically updated?
My wamp is running PHP 5.5.12 while the server is 5.4
=== QUESTION UPDATE ===
The server is no recognizing and as a result the .htaccess file is rendering in a single line without link breaks and is commenting itself out.
Here is the original code:
# Prevent viewing of .htaccess file
if($view_htaccess == 1){
$htaccess_code .= "# Prevent viewing of .htaccess file ";
$htaccess_code .= "<Files .htaccess> ";
$htaccess_code .= "order allow,deny ";
$htaccess_code .= "deny from all ";
$htaccess_code .= "</Files> ";
$htaccess_code .= " ";
}
I tried
and
as well... not sure where to go from here
Thanks for any assistance in advance,
Pete