今天发现, 这两个文件在做 Rewrite 时是有不同的.

 

1) httpd.conf 中需要以 / 开头:如下:

RewriteRule ^/abc.html$ /abc/index.php [L]

而在 .htaccess , 需要如下:

RewriteRule ^abc.html$ /abc/index.php [L] 

 

2) httpd.conf 中可以支持冒号 :? 号, 如下:

RewriteRule ^/58-(.+).html$ /abc/index.php?sn=58&q=$1 [L]

而在 .htaccess , 是不支持的.

RewriteRule ^58-(.+).html$ /abc/index.php?sn=58&q=$1 [L]

相关文章:

  • 2021-08-04
  • 2022-02-19
  • 2021-05-20
  • 2021-10-06
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-12-19
  • 2021-06-26
相关资源
相似解决方案