Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我根目录配置的.htaccess 是有问题吗 #63

Open
tx321-4 opened this issue Mar 7, 2021 · 0 comments
Open

我根目录配置的.htaccess 是有问题吗 #63

tx321-4 opened this issue Mar 7, 2021 · 0 comments

Comments

@tx321-4
Copy link

tx321-4 commented Mar 7, 2021

我在根目录 配置public

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

然后用仓库里的 /public/.htaccess 文件报错, 提示 你所浏览的页面暂时无法访问
找了一圈答案
我就改了 /public/.htaccess 就成功了

RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
改为
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

是我的配置有问题吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant