求个伪静态守则
程序员文章站
2024-02-09 14:39:04
...
求个伪静态规则
http://www.baidu.com/read/1/1000/index.html
http://www.baidu.com/read/2/2000/index.html
http://www.baidu.com/read/30/30000/index.html
伪静态后,需要能够实现
http://www.baidu.com/read/1000/index.html
http://www.baidu.com/read/2000/index.html
http://www.baidu.com/read/30000/index.html
------解决方案--------------------
我给你我写过的伪静态示例,希望对你有用
httpd.ini
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteRule /index\.html /index\.asp
RewriteRule /Cpic_(\d+)\.html /Cpic\.asp\?id=$1
RewriteRule /Cpic_(\d+)_(\d+)\.html /Cpic\.asp\?page=$1&id=$2
.htaccess
RewriteEngine on
RewriteRule ^map.html /map.asp
RewriteRule ^Cxwnews_(\d+).html /Cxwnews.asp?id=$1
RewriteRule ^Cxwnews_(\d+)_(\d+).html /Cxwnews.asp?page=$1&id=$2
http://www.baidu.com/read/1/1000/index.html
http://www.baidu.com/read/2/2000/index.html
http://www.baidu.com/read/30/30000/index.html
伪静态后,需要能够实现
http://www.baidu.com/read/1000/index.html
http://www.baidu.com/read/2000/index.html
http://www.baidu.com/read/30000/index.html
------解决方案--------------------
我给你我写过的伪静态示例,希望对你有用
httpd.ini
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteRule /index\.html /index\.asp
RewriteRule /Cpic_(\d+)\.html /Cpic\.asp\?id=$1
RewriteRule /Cpic_(\d+)_(\d+)\.html /Cpic\.asp\?page=$1&id=$2
.htaccess
RewriteEngine on
RewriteRule ^map.html /map.asp
RewriteRule ^Cxwnews_(\d+).html /Cxwnews.asp?id=$1
RewriteRule ^Cxwnews_(\d+)_(\d+).html /Cxwnews.asp?page=$1&id=$2
相关文章
相关视频
专题推荐
-
独孤九贱-php全栈开发教程
全栈 170W+
主讲:Peter-Zhu 轻松幽默、简短易学,非常适合PHP学习入门
-
玉女心经-web前端开发教程
入门 80W+
主讲:灭绝师太 由浅入深、明快简洁,非常适合前端学习入门
-
天龙八部-实战开发教程
实战 120W+
主讲:西门大官人 思路清晰、严谨规范,适合有一定web编程基础学习
上一篇: ThinkPHP读取不到系统常量解决方案
下一篇: 数据库交互的几个简单的对象
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论