|
主机不支持运行目录解决办法
使用方法 .htaccess public 运行目录,自行修改 - <IfModule mod_rewrite.c>
- RewriteEngine on
- RewriteBase /
- RewriteCond %{REQUEST_URI} ^(.*)$
- RewriteRule ^(application|data|extend|rule|runtime|sldate|thinkphp|uploadintegral|uploads|view|vendor|upload|app|static)/(.*).(php|php5|phtml|json)$ waf.php?wafhtml=1 [R=301,NC,L]
- RewriteCond %{REQUEST_URI} !^/public/.*$
- RewriteRule ^(.*)$ /public/$1 [QSA,L]
- </IfModule>
复制代码
|
|