最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

路由訪問(wèn)不了

我在routes.php里寫(xiě)得路由訪問(wèn)不了怎么回事啊老師? 把他原來(lái)自帶得路由原先是‘/’可以訪問(wèn),但是改下名字也不行了。。才入坑求解


The requested URL /php/laravel/public/member/info was not found on this server.



正在回答

2 回答

你沒(méi)有URL重寫(xiě),就是把入口文件省略做配置。如果沒(méi)配置的話,每一個(gè)URL都加上index.php的入口文件。

0 回復(fù) 有任何疑惑可以回復(fù)我~

你是什么環(huán)境的,我之前遇到過(guò)這種問(wèn)題,我是 nginx 的環(huán)境,要修改nginx的配置文件就可以了 ??

server?{
????listen???????80;
????server_name??test.laravel.local;
????access_log??/home/wwwroot/default/logs/access_laravel.log;
????error_log???/home/wwwroot/default/logs/error_laravel.log;
????root???/home/wwwroot/default/laravel5/public;

????index?index.html;
????location?/?{
??????index??index.php;
??????try_files?$uri?$uri/?/index.php?$query_string;
????????if?(!-e?$request_filename)?{
????????????????rewrite??^/(.*)$??/index.php/$1??last;
????????????????break;
????????}
????}

????location?~?.+\.php($|/)?{
????????set?$script????$uri;
????????set?$path_info??"/";
????????if?($uri?~?"^(.+\.php)(/.+)")?{
????????????set?$script?????$1;
????????????set?$path_info??$2;
????????}
????????fastcgi_pass?unix:/tmp/php-cgi.sock;
????????fastcgi_index??index.php?IF_REWRITE=1;
????????include?fastcgi_params;
????????fastcgi_param?PATH_INFO?$path_info;
????????fastcgi_param?SCRIPT_FILENAME??$document_root/$script;
????????fastcgi_param?SCRIPT_NAME?$script;
????}
}


1 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

路由訪問(wèn)不了

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)