开发者社区 问答 正文

织梦.htaccess 文件 tag.php?/1/ 如何静态化跳转 tag/1.html .htaccess 如何写?

织梦.htaccess 文件 tag.php?/1/ 如何静态化跳转 tag/1.html

.htaccess 如何写?

展开
收起
dsdvsdvsdvd 2019-01-09 21:48:33 2278 分享 版权
1 条回答
写回答
取消 提交回答
  • 后端开发者,阿里云用户
    <IfModule mod_rewrite.c>
      Options +FollowSymlinks -Multiviews
      RewriteEngine On
    
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^tag/(\d+)\.html$ index.php?/$1/ [QSA,PT,L]
    </IfModule>
    2019-07-17 23:25:07
    赞同 展开评论