相关疑难解决方法(0)

Apache重写为Laravel/public

我对此感到抱歉,但我的htdocs root是错的,我无法改变它.所以我必须让它在/public文件夹中工作.

我使用正常的Laravel .htaccess文件进行以下重写:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Run Code Online (Sandbox Code Playgroud)

如果我打开,http://kemtime2_neu.pr.domain.de/public我会被重定向到http://kemtime2_neu.pr.domain.de/public/http://kemtime2_neu.pr.domain.de/public/login

我怎样才能解决这个问题?

我希望能让它起作用,http://kemtime2_neu.pr.domain.de/但让它与之合作http://kemtime2_neu.pr.domain.de/public/会很好.

php apache mod-rewrite laravel

3
推荐指数
2
解决办法
2万
查看次数

标签 统计

apache ×1

laravel ×1

mod-rewrite ×1

php ×1