现在,/post/总会跳到别的页面,而不是跳到/post的位置。我的laravel版本是4.2,下面是测试代码。phpRoute::get('post',function(){return'w/outslash';});Route::get('post/',function(){return'withslash';});phpRoute::get('post/',function(){return'withslash';});Route::get('post',function(){return'w/outslash';});以上两种配置,结果都如下,都是/post/301跳到别的页面,/post页面正常。curlhttp://localhost/gitcafe/public/postwithslashcurlhttp://localhost/gitcafe/public/post/301MovedPermanently MovedPermanently
Thedocumenthasmoved
here.
相关分类