第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

訪問http://localhost:/index/Index/index失敗

老師,請問在phpstudy里面的LoadModule rewrite_module modules/mod_rewrite.so是沒有注釋掉的,而根目錄下的AllowOverride?All也是正確的,public目錄下的也是具有.htaccess文件的。重啟apache之后,訪問http://localhost:/index/Index/index怎么還是找不到呢??

<IfModule?mod_rewrite.c>
??Options?+FollowSymlinks?-Multiviews
??RewriteEngine?On

??RewriteCond?%{REQUEST_FILENAME}?!-d
??RewriteCond?%{REQUEST_FILENAME}?!-f
??RewriteRule?^(.*)$?index.php/$1?[QSA,PT,L]
</IfModule>
#LoadModule?proxy_scgi_module?modules/mod_proxy_scgi.so
#LoadModule?ratelimit_module?modules/mod_ratelimit.so
#LoadModule?reflector_module?modules/mod_reflector.so
#LoadModule?remoteip_module?modules/mod_remoteip.so
#LoadModule?request_module?modules/mod_request.so
#LoadModule?reqtimeout_module?modules/mod_reqtimeout.so
LoadModule?rewrite_module?modules/mod_rewrite.so
#LoadModule?sed_module?modules/mod_sed.so
#LoadModule?session_module?modules/mod_session.so
DocumentRoot??"D:\phpStudy\WWW\web\public"
<Directory?/>
????Options?+Indexes?+FollowSymLinks?+ExecCGI
????AllowOverride?All
????Order?allow,deny
????Allow?from?all
????Require?all?granted
</Directory>



正在回答

2 回答

如果用的phpstudy,規(guī)則如下:
<IfModule?mod_rewrite.c>?Options?+FollowSymlinks?-Multiviews?
RewriteEngine?on?RewriteCond?%{REQUEST_FILENAME}?!-d?
RewriteCond?%{REQUEST_FILENAME}?!-f?
RewriteRule?^(.*)$?index.php?[L,E=PATH_INFO:$1]?
</IfModule>


0 回復 有任何疑惑可以回復我~

在wamp上面設置了上面的選項之后,是可以直接隱藏index.php的,但是在phpstudy就出現(xiàn)了問題

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

訪問http://localhost:/index/Index/index失敗

我要回答 關注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號