服务器不支持指定运行目录 解决办法

技术分享
414 0

服务器不支持指定运行目录 解决办法

  1. public下的.htaccess /WEB/public/.htaccess
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>

据说是万能的伪静态规则

2.根目录下的 /WEB/.htaccess

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L]

指定到 访问public下

https://www.76fx.com/83.html
最后更新 2022-03-24
评论 ( 0 )
问:叁 + 叁 = ?
OωO
隐私评论