Forum Moderators: coopster
Is it bad practice to store these details in files other than .php?
not2easy: If the .htaccess file that protects it is in the root directory and there is no other .htaccess file within the folder where the script is stored, then it 'should' be safe.
w3dk: I'm curious why you stipulated a .htaccess file in the root directory?I was not stipulating that a root directory htaccess file would be better (or worse) merely that it would make a difference because the OP mentions
I have the file (and the folder it is in) protected by .htaccesswithout mentioning where that .htaccess file was at.
order allow,deny
deny from all
ErrorDocument 500
The primary objectives of this project are speed and simplicity for the less technically accomplished.
I'm in the process of building a simplified CMS/framework/ecommerce
<?php exit() ?>
JSON data here...
<Files .htaccess>
order allow,deny
deny from all
</Files>
The errordocument line was originally: ErrorDocument "nothing here" ... which I felt gave a greater indication that there actually was something there than not.
ErrorDocument 403 "nothing here"
# Unconditional 404 Not Found for all requests
Redirect 404 /
RewriteEngine On
RewriteRule ^ - [R=404]
# Unconditional 500 Internal Server Error for all requests
Redirect 500 /
RewriteEngine On
RewriteRule ^ - [R=500]