HectorOrdonez/TheMindCraftProject/master/.htaccess
# Global Htaccess file.
#
# Project: The Mindcraft Project
# User: Hector Ordonez
# Date: 18/06/13 21:00
#######################
##### DEVELOPMENT #####
#######################
php_flag display_errors on
php_value error_reporting 32767
# RewriteEngine tells Apache to process Rewrite commands.
RewriteEngine On
# RewriteBase defines what is going to be the base url. So localhost/index.php becomes localhost/hecnel/index.php
RewriteBase /themindcraftproject
# Error pages for fatal errors redirection - Authentication failed
ErrorDocument 401 http://localhost/themindcraftproject/error/authFailed
# Error pages for fatal errors redirection - Forbidden access
ErrorDocument 403 http://localhost/themindcraftproject/error/accessForbidden
# Error pages for fatal errors redirection - Page not found
ErrorDocument 404 http://localhost/themindcraftproject/error/resourceNotFound
# Error pages for fatal errors redirection - Internal Server Error
ErrorDocument 500 http://localhost/themindcraftproject/error/internalServerError
# Allowing access to Index.
RewriteRule ^(index.php) index.php [QSA,L]
# Forbidding access to PHP files.
RewriteRule ^(.+).php - [F,L]
# Redirecting requests if not to a file or link.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
######################
##### PRODUCTION #####
######################
# php_flag display_errors on
# php_value error_reporting 32767
#
# # RewriteEngine tells Apache to process Rewrite commands.
# RewriteEngine On
#
# # RewriteBase defines what is going to be the base url. So localhost/index.php becomes localhost/hecnel/index.php
# RewriteBase /
#
# # Error pages for fatal errors redirection - Authentication failed
# ErrorDocument 401 http://www.themindcraftproject.org/error/authFailed
# # Error pages for fatal errors redirection - Forbidden access
# ErrorDocument 403 http://www.themindcraftproject.org/error/accessForbidden
# # Error pages for fatal errors redirection - Page not found
# ErrorDocument 404 http://www.themindcraftproject.org/error/resourceNotFound
# # Error pages for fatal errors redirection - Internal Server Error
# ErrorDocument 500 http://www.themindcraftproject.org/error/internalServerError
#
# # Allowing access to Index.
# RewriteRule ^(index.php) index.php [QSA,L]
#
# # Forbidding access to PHP files.
# RewriteRule ^(.+).php - [F,L]
#
# # Redirecting requests if not to a file or link.
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-l
# RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
On Github License
Files