寶塔建站訪問不了的原因:
本系統中hosts文件未加入。解決方法:
hosts文件位置如:C:\Windows\System32\drivers\etc
如若取消時,在配置行前加上#
如果是tp5,設置一下偽靜態,代碼:
location / {if (!-e $request_filename){rewrite ^(.*)$ /index.php?s=$1 last; break;}}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}