URL兼容模式下U方法怎么去掉 index.php?s= 疑惑啊

浏览:3911 发布日期:2014/01/15 分类:求助交流 关键字: URL兼容模式
<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
</IfModule>
已经有这个 .htaccess文件。可以直接手动去掉ndex.php?s= 访问。

疑问是{:U('/news/'.$v['id'])} 生成的是

/index.php?s=/news/1.html

而不是直接生成 /news/1.html 请指教不知道哪里还需要配置。
最佳答案
评论( 相关
后面还有条评论,点击查看>>