amazingnic's recent timeline updates
amazingnic

amazingnic

V2EX member #91970, joined on 2015-01-15 15:24:17 +08:00
amazingnic's recent replies
Mar 27, 2015
Replied to a topic by amazingnic PHP Thinkphp url 问题
在nginx中做了rewrite就ok了。。
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?s=$1 last;
}
Mar 27, 2015
Replied to a topic by amazingnic PHP Thinkphp url 问题
@xzem .htaccess中的规则如下:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
那么访问http://192.168.0.168/Home/Index/index之后,匹配的$1就是Home/Index/index,不是刚好rewrite成了http://192.168.0.168/index.php/Home/Index/index吗 ?但实际访问http://192.168.0.168/Home/Index/index也是404.
Mar 6, 2015
Replied to a topic by foolbearex 问与答 请教个 DNS 的问题
不要用A记录。用CNAME试试。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   898 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 22:25 · PVG 06:25 · LAX 15:25 · JFK 18:25
♥ Do have faith in what you're doing.