.htaccess重写规则问题

china_skag 2015-01-27 05:25:56
如 http://www.test.com/url.php 如果用 http://www.test.com/url/index.html 可以访问,重写规则该如何写?

按照如下来写规则,无法访问http://www.test.com/url/index.html

RewriteRule ^url/index.html$ url.php

请指教!



...全文
158 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaobuxun 2015-02-03
  • 打赏
  • 举报
回复
这样应该可以 RewriteRule ^*\/index.html$ http://www.test.com/url.php[L] 下边的详细语法可供参考: http://blog.csdn.net/xiaobuxun/article/details/43452019

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧