xiaomaijr/app.xiaomaijr.com/dev/api/.htaccess - Htaccess File

xiaomaijr/app.xiaomaijr.com/dev/api/.htaccess

#
# .htaccess
# 
#
# 为了正常启用URL Rewrite,请将apache配置文件中“LoadModule rewrite_module modules/mod_rewrite.so”
# 前的注释去掉,并将apache的DocumentRoot开启AllowOverride
# 
# 如下所示为apache下httpd.conf的代码片段:
# <Directory "YourDocumentRoot">
#   Options Indexes FollowSymLinks ExecCGI Includes
#   AllowOverride All
#   Order allow,deny
#   Allow from all
# </Directory>
#
 
# 是否开启URL Rewrite.
RewriteEngine On
RewriteRule ^static/(.*)$  web/static/$1 [S]

RewriteRule ^(assets/.*)$  web/$1 [S]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !=/server-status
RewriteRule ^(.*)$ web/index.php/$1 [QSA,PT,L]

# 非法链接
RewriteRule ^/?([a-zA-Z0-9]+)$                                index.php?app=home&mod=Public&act=error404 [L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI, static

Comments

Apache