+ -
当前位置:首页 → 问答吧 → 帮忙看看这个伪静态规则有错误嘛?

帮忙看看这个伪静态规则有错误嘛?

时间:2011-09-04

来源:互联网

  1. RewriteEngine On
  2. RewriteRule ^index.html$ index.php?action=main

  3. RewriteRule ^page([0-9]+)/?$ index.php\?action=main&page=$1
  4. RewriteRule ^download-([0-9]+).html index.php\?action=down&id=$1

  5. RewriteRule ^([a-z0-9-]+)/?$ index.php\?action=show&surl=$1

  6. RewriteRule ^author/(.+)/?$ index.php\?action=author&item=$1
  7. RewriteRule ^author-(.+)/page([0-9]+)/?$ index.php\?action=author&item=$1&page=$2

  8. RewriteRule ^category/(.+)/?$ index.php\?action=main&cat=$1
  9. RewriteRule ^category-(.+)/page([0-9]+)/?$ index.php\?action=main&cat=$1&page=$2

  10. RewriteRule ^tag/(.+)/?$ index.php\?action=main&tag=$1
  11. RewriteRule ^tag-(.+)/page([0-9]+)/?$ index.php\?action=main&tag=$1&page=$2
复制代码


http://127.0.0.1:9000/the-little-book-on-external-debt
自己写了个简单点的,网址规则想弄成Wordpress那样的。。  内容页的网址都是 a-z 0-9 中间用-连接。
其他就是/tag    /category  什么的。。请帮忙检查一下有啥问题嘛?目前自己测试倒是对的。。有啥工具自己跑,看看有啥特殊页面会出错没有啊?

作者: h4cker   发布时间: 2011-09-04

那就会出错再说,每个可能出错的也也页面都点击一下

作者: llh110220   发布时间: 2011-09-04

相关阅读 更多