niushop配置伪静态

 [ Apache ]
        1. httpd.conf配置文件中加载了mod_rewrite.so模块
        2. AllowOverride None 将None改为 All

二、进入系统后台选择访问模式
         
         进入系统后台--设置--基础设置--网站设置下方网站访问模式
                

三、进入程序代码开启伪静态
       
程序根目录/application/config.php 找到设置伪静态

  1. true     //开启伪静态
  2. false    //关闭伪静态

复制代码

 

重启apache即可

tp伪静态设置,报No input file specified错误

需要修改.htaccess文件中

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
改为
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
发布了93 篇原创文章 · 获赞 9 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/bj123467/article/details/85003707