angusfenying/LRT.PHP/master/boot/.htaccess/apache.htaccess - Htaccess File

angusfenying/LRT.PHP/master/boot/.htaccess/apache.htaccess

# This file introduces rewrite rules of Apache to enable the URI mode.
# Usage: 
#
#     Copy this file to root of LRT framework as name '.htaccess', and then
# include the new file in your virtual host configuration file.
#
# Windows:
#
#  mklink /H .htaccess boot.htaccessapache.htaccess
#
# Linux:
#
#  ln boot.htaccessapache.htaccess .htaccess
#

RewriteEngine on

ErrorDocument  400             /public/common/400.html
ErrorDocument  401               /public/common/401.html
ErrorDocument  403               /public/common/403.html
ErrorDocument  404               /public/common/404.html
ErrorDocument  503               /public/common/503.html

RewriteRule ^/public/(.+)$       /public/$1  [L]

RewriteRule ^(.+)$              /index.php?__uri=$1 [L]

On Github License

Files

Download PDF of Htaccess file

Comments

Apache