具体的设置方法见压缩包内说明文档.

httpd.ini配置方法
(每个大括号代表一个url参数,其中用正则表达式匹配.)

RewriteRule ^(.*)/([a-z0-9\-\_]+)$ $1/Default\.aspx\?id=$2
# http://localhost/Text 就会等同于 http://localhost/Default.aspx?id=Text

# RewriteRule ^(.*)/id_([a-z0-9\-]+)\.html$ $1/Default\.aspx\?id=$2
# http://localhost/id_Text.html 就会等同于 http://localhost/Default.aspx?id=Text

RewriteRule ^(.*)/html/([0-9]+)/([0-9]+)\.html$ $1/Default\.aspx\?id=$2&name=$3
# http://localhost/html/001/007.html 就等同于 http://localhost/Default.aspx?id=001&name=007

相关文章:

  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2021-07-12
  • 2021-08-21
  • 2022-12-23
  • 2021-09-27
相关资源
相似解决方案