92kaifa源码论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

httpd.ini与.htaccess伪静态规则转换

[复制链接]
发表于 2019-7-16 01:54:19 | 显示全部楼层 |阅读模式
httpd.ini
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^(.*)/view-(.*)-(.*)\.htm$ $1/view\.php\?s=$2&y=$3

.htaccess(注意上面的红斜杠)
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)view-(.*)-(.*).htm$ $1/view.php?s=$2&y=$3




  1. httpd.ini
  2. [ISAPI_Rewrite]
  3. # 3600 = 1 hour
  4. CacheClockRate 3600
  5. RepeatLimit 32
  6. RewriteRule ^(.*)/view-(.*)-(.*)\.htm$ $1/view\.php\?s=$2&y=$3

  7. .htaccess(注意上面的红斜杠)
  8. RewriteEngine on
  9. RewriteBase /
  10. RewriteRule ^(.*)view-(.*)-(.*).htm$ $1/view.php?s=$2&y=$3
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|92kaifa源码论坛 ( 宁ICP备15001160号-4 )

GMT+8, 2019-10-20 12:00 , Processed in 0.109375 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.宁公网安备 64030202000112号

快速回复 返回顶部 返回列表