AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 如何支持Thinkphp的重写模式 |
|
---|---|
change |
change 发表于 2013-07-10 12:11:01
http://amysql.com/bbs/forum.php?mod=viewthread&tid=25
按照这个设置了, 没有用啊。 还有什么其他办法吗?
点赞,加油! (0分)
2013-07-10 12:11:01 1
|
change |
我照TP官网上一个人给的方法,也没办法解决,
老大帮忙看看啊。 http://www.thinkphp.cn/topic/3138.html
回复
2013-07-10 13:58:52 2
|
amysql |
有模块AMPathinfo-1.0
http://amysql.com/bbs/post-431-1-1.htm 有安装试了吗
回复
2013-07-10 15:22:37 3
AMH面板 - 好用高效低占用、安全可靠极稳定 |
change |
回复
2013-07-10 15:53:21 4
|
amysql |
改过Nginx配置吗?
URL是怎样的?
回复
2013-07-10 15:56:26 5
|
change |
之前改过,后来有把恢复掉了, http://www.xxx.com/sponsor/ 打开后是 http://www.xxx.com/sponsor/ssl/login
回复
2013-07-10 16:05:12 6
|
amysql |
测试正常。 1) 安装AMPathinfo-1.0模块。 开启对应主机支持Pathinfo。 2) 安装URL重写模块:AMRewrite-1.0 http://amysql.com/bbs/post-399-1-1.htm 添加一规则文件如: TP.conf if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1; } 3) 回到主机列表选择TP.conf规则。 完成。 Array ( [USER] => www [HOME] => /home/www [FCGI_ROLE] => RESPONDER [PATH_INFO] => /sponsor/ssl/login [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_SOFTWARE] => nginx/1.2.9 [QUERY_STRING] => [REQUEST_METHOD] => GET [CONTENT_TYPE] => [CONTENT_LENGTH] => [SCRIPT_NAME] => /index.php [REQUEST_URI] => /sponsor/ssl/login [DOCUMENT_URI] => /index.php/sponsor/ssl/login [DOCUMENT_ROOT] => /home/wwwroot/amh.com/web [SERVER_PROTOCOL] => HTTP/1.1 [REMOTE_ADDR] => [REMOTE_PORT] => 3240 [SERVER_ADDR] => [SERVER_PORT] => 80 [SERVER_NAME] => amh.com [REDIRECT_STATUS] => 200 [SCRIPT_FILENAME] => /home/wwwroot/amh.com/web/index.php [HTTP_HOST] => amh.com [HTTP_CONNECTION] => keep-alive [HTTP_CACHE_CONTROL] => max-age=0 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36 [HTTP_ACCEPT_ENCODING] => gzip,deflate,sdch [HTTP_ACCEPT_LANGUAGE] => zh-CN,zh;q=0.8 [HTTP_COOKIE] => ofux_2132_saltkey=pAeHeoRU; ofux_2132_lastvisit=1372878204; ofux_2132_ulastactivity=2f8cywkQsV9jjEnPxuszaQol%2FAvMj6ycqIBF3xoIShlev37qbrAW; ofux_2132_lastcheckfeed=1%7C1372881815; ofux_2132_nofavfid=1; ofux_2132_visitedfid=2; ofux_2132_smile=1D1; ofux_2132_forum_lastvisit=D_2_1372929425 [PHP_SELF] => /sponsor/ssl/login [REQUEST_TIME] => 1373443909 )
回复
2013-07-10 16:15:38 7
|
change |
还是不可以,能不能我PM你账户密码,你帮我看一下
回复
2013-07-10 16:25:59 8
|
amysql |
回复
2013-07-10 16:27:44 9
|
change |
回复
2013-07-10 16:36:00 10
|