php做伪静态怎么做啊 本人网站长沙seo 想做伪静态 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 url 重写啊,开启rewrite,不过重写规则要写好啊 .htacess 我的也是伪静态ydtuiguang.com规则先写好,代码替换URL为规则里的格式RewriteEngine On#RewriteBase /# direct one-word accessRewriteRule ^index\.html$ index\.php [L]RewriteRule ^tg([0-9]+)p([0-9]+)\.html$ column\.php?cid=$1&page=$2 [QSA,L]代码就要写$html = str_replace('index.php', 'index.html', $html);$html = preg_replace("/\"column.php\?cid=(\d+)&id=(\d+)&page=(\d+)/i", "\"tg$1id$2p$3.html", $html); rewrite url就可以的,百度一下,你就知道 谁有没有php w32工程? 获得标签内容的函数编写。 在wap开发中,关于怎样用php得到访问者手机型号? 两个相同的句子,一句报错一句不报错 很困惑的一个问题,csv导入 开贴讨论PHP数组容量的问题,来者有分! thinkphp index.php隐藏问题 下载计数问题 怎样查看弹出页面的源代码 如何隐藏服务器端的IP地址啊!用php能实现吗? php代码中如何取得root权限 关于Smarty中字符串截取的问题!
规则先写好,代码替换URL为规则里的格式
RewriteEngine On
#RewriteBase /
# direct one-word access
RewriteRule ^index\.html$ index\.php [L]
RewriteRule ^tg([0-9]+)p([0-9]+)\.html$ column\.php?cid=$1&page=$2 [QSA,L]
代码就要写
$html = str_replace('index.php', 'index.html', $html);
$html = preg_replace("/\"column.php\?cid=(\d+)&id=(\d+)&page=(\d+)/i", "\"tg$1id$2p$3.html", $html);