由网友(脾气依旧,爱受不受)分享简介:在重复的问题,该修补程序不起作用。The fix in the duplicate question doesn't work.我尝试了所有的修复程序计算器,但似乎没有奏效laravel尾随斜线重定向到本地主机 I tried all the Fixes in stackoverflow but nothing...
在重复的问题,该修补程序不起作用。
The fix in the duplicate question doesn't work.
我尝试了所有的修复程序计算器,但似乎没有奏效 laravel尾随斜线重定向到本地主机
I tried all the Fixes in stackoverflow but nothing seems to be working laravel trailing Slashes redirect to localhost
路线
Route::get('/admin', array('as' => 'admin', 'uses' => 'AdminAdmin@getLogin'));
这个URL工作正常 的http://本地主机/应用程序/管理
This URL is working fine http://localhost/app/admin
但是当我在它前面加斜线的http://本地主机/应用程序/管理/ 它被重定向到的http://本地主机/管理
but when I add a trailing slash in front of it http://localhost/app/admin/ it gets redirected to http://localhost/admin
帮助!
推荐答案
补充这一点,它的工作!
Added this and it worked!
RewriteCond %{REQUEST_URI} !^
相关推荐
最新文章