Vagnerlg/ws_liju_php_mysql_json/master/.htaccess
#RewriteBase /
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
ErrorDocument 400 /v2/erro/json/HTTP_BAD_REQUEST
ErrorDocument 401 /v2/erro/json/HTTP_UNAUTHORIZED
ErrorDocument 403 /v2/erro/json/HTTP_FORBIDDEN
ErrorDocument 404 /v2/erro/json/HTTP_NOT_FOUND
ErrorDocument 405 /v2/erro/json/HTTP_METHOD_NOT_ALLOWED
ErrorDocument 408 /v2/erro/json/HTTP_REQUEST_TIME_OUT
ErrorDocument 410 /v2/erro/json/HTTP_GONE
ErrorDocument 411 /v2/erro/json/HTTP_LENGTH_REQUIRED
ErrorDocument 412 /v2/erro/json/HTTP_PRECONDITION_FAILED
ErrorDocument 413 /v2/erro/json/HTTP_REQUEST_ENTITY_TOO_LARGE
ErrorDocument 414 /v2/erro/json/HTTP_REQUEST_URI_TOO_LARGE
ErrorDocument 415 /v2/erro/json/HTTP_SERVICE_UNAVAILABLE
ErrorDocument 500 /v2/erro/json/HTTP_INTERNAL_SERVER_ERROR
ErrorDocument 501 /v2/erro/json/HTTP_NOT_IMPLEMENTED
ErrorDocument 502 /v2/erro/json/HTTP_BAD_GATEWAY
ErrorDocument 503 /v2/erro/json/HTTP_SERVICE_UNAVAILABLE
ErrorDocument 506 /v2/erro/json/HTTP_VARIANT_ALSO_VARIES
On Github License
Files
Download PDF of Htaccess file