jquery mobile笔记

深碍√TFBOYSˉ_ 2022-08-13 00:42 228阅读 0赞

1:http://www.wglong.com/main/artical!details?id=4\#q2

2:codeigniter(ci)在nginx下返回404的处理方法即codeigniter在nginx下配置方法,

对于/index.php/abc这种url,Apachelighttpd会按”index.php?abc”来解释,而nginx会认为是请求名字是“index.php”的目录下的abc文件的内容。所以CI在nginx下不配置rewrite是无法运行的,而在Apache和lighttpd则正常。

进入nginx的配置文件

加上一句(本来就有这句,只需要修改一下就行了

  1. location /
  2. {
  3. index index.php;
  4. if (!-e $request_filename) {
  5. rewrite ^/(.*)$ /index.php?$1 last;
  6. break;
  7. }
  8. }

然后在codeigniter项目的application/config/config.php中的$config[‘index_page’] = ‘’;去掉url路径的 index.php。

3:http://kayosite.com/demo/jQuery-Mobile-HTML5/Note-3/index.html

发表评论

表情:
评论列表 (有 0 条评论,228人围观)

还没有评论,来说两句吧...

相关阅读

    相关 jQuery Mobile

    jQuery Mobile是一个基于jQuery Core的触摸友好UI框架,适用于所有流行的移动,平板电脑和桌面平台。 官网:[http://jquerymobile.co