RewriteRule适用于一种情况但不适用于其他情况

时间:2015-12-09 05:55:43

标签: html apache .htaccess mod-rewrite url-rewriting

  Options +FollowSymLinks -MultiViews
  # Turn mod_rewrite on
  RewriteEngine On 
  RewriteRule apartments  projects.html    [NC,L]  
  RewriteRule ^/apartments/cat/name2/?$    project-details.html    [NC,L]

创建了上述重写规则以更改网址 1)www.domain.com/apartments www.domain.com/projects.html 1)www.domain.com/apartments/cat/name2 / project-details.html

规则1成功规则2失败!两个 htmls都存在

1 个答案:

答案 0 :(得分:1)

试试这个:

pdfbox-app-2.0.0-RC1