cboulanger/dataserver/master/htdocs/.htaccess - Htaccess File

cboulanger/dataserver/master/htdocs/.htaccess

# If on a testing site, deny by default unless IP is allowed
SetEnvIf Host "apidev" ACCESS_CONTROL
SetEnvIf Host "syncdev" ACCESS_CONTROL
#######                   Local
SetEnvIf X-Forwarded-For "192.168.1.|" !ACCESS_CONTROL
order deny,allow
deny from env=ACCESS_CONTROL

php_value include_path "../include"
php_value auto_prepend_file "header.inc.php"
php_value auto_append_file "footer.inc.php"

php_value memory_limit 500M

#php_value xdebug.show_local_vars 1
#php_value xdebug.profiler_enable 1
#php_value xdebug.profiler_enable_trigger 1
#php_value xdebug.profiler_output_dir /tmp/xdebug

RewriteEngine On

# If file or directory doesn't exist, pass to director for MVC redirections
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule .* index.php [L]

On Github License

Files

Download PDF of Htaccess file
SCRIPT_FILENAME

Comments

Apache