A-A+

mymps伪静态规则 1.0 1.5通用版本

2009年01月20日 Mymps 暂无评论 阅读 307 次浏览 次

使用方法:% Z- C6 A  X; q3 S# p- D  W

1.上传.htaccess到mymps根目录;& l4 h5 @9 X! c

2.后台开启。

3.缓冲下!* w0 T5 [5 q, X, z8 B



前提:

空间必须支持htaccess解析。这个应该咨询下空间商。7 n/ y4 C$ `/ B+ F



文件代码如下:

  1.  
  2. RewriteEngine On
  3. RewriteRule ^info-id-([0-9]+)\/$ public/info.php?id=$1
  4. RewriteRule ^info-catid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&page=$2
  5. RewriteRule ^info-catid-([0-9]+)-areaid-([0-9]+)-page-([0-9]+)\/$ public/info.php?catid=$1&areaid=$2&page=$3
  6. RewriteRule ^aboutus\/$ public/about.php?part=aboutus2 k! \& v+ x2 p3 O
  7. RewriteRule ^aboutus-id-([0-9]+)\/$ public/about.php?part=aboutus&id=$1
  8. RewriteRule ^announce-page-([0-9]+)\/$ public/about.php?part=announce&page=$1
  9. RewriteRule ^announce-id-([0-9]+)\/$ public/about.php?part=announce&id=$1; F3 Z8 g! `, I: _: M# E
  10. RewriteRule ^faq\/$ public/about.php?part=faq! b/ i: C" q! v. Z& _6 b4 V
  11. RewriteRule ^faq-id-([0-9]+)\/$ public/about.php?part=faq&id=$1; X' W; H7 e$ L# o) j5 j
  12. RewriteRule ^friendlink\/$ public/about.php?part=friendlink
  13. RewriteRule ^friendlink-action-apply\/$ public/about.php?part=friendlink&action=apply
  14. RewriteRule ^guestbook-page-([0-9]+)\/$ public/about.php?part=guestbook&page=$1& u4 n7 x1 V  T; @+ m$ t
  15. RewriteRule ^guestbook-action-write\/$ public/about.php?part=guestbook&action=write
  16. RewriteRule ^space-([a-z,0-9\-]+)\/$ public/space.php?user=$1
  17.  

复制代码

复制代码到记事本另存为文件名 .htaccess  注意文件类型要选所有类型,要不win系统提示没文件名的哦!% H  c- y* }8 s, F/ a

: J3 ]1 N1 F- \6 }

优点:& `  j  A; c# u1 V9 `  n8 Z

1.无需繁琐配置,上传即可。; H5 F2 C( z: e6 r' h

2.修复了之前的页面打开无法正常跳转问题,即页面多是一样的问题。

9 P$ t* W. z; y

下期预告,请关注:

1.模板防下载,可以有效防盗。

2.URL标准化问题。

3.图片链接防盗问题。

& t6 c& ?' Y, \" j

标签:

评论已关闭!

Copyright © 香港虚拟主机_美国虚拟主机_香港服务器_美国服务器租用托管 保留所有权利.   Theme  Ality 蜀ICP备14006632号-1

用户登录