求一条apache地址重写则规

footprint2008 2014-07-16 03:48:16
求一条apache地址重写则规
1、当在url输入http://xx.aaa.com时访问http://xx.aaa.com/xx/index.html
当在url输入http://yy.aaa.com时访问http://yy.aaa.com/yy/index.html
...全文
128 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
footprint2008 2014-07-17
  • 打赏
  • 举报
回复
引用 1 楼 xuzuning 的回复:
RewriteCond %{HTTP_HOST} ^([^\.]+).aaa.com$ RewriteRule ^(/?)(.*)$ /%1/index.html [PT,L]
真心感谢你这样无私分享的人。
小在在 2014-07-16
  • 打赏
  • 举报
回复
引用 1 楼 xuzuning 的回复:
RewriteCond %{HTTP_HOST} ^([^\.]+).aaa.com$ RewriteRule ^(/?)(.*)$ /%1/index.html [PT,L]
+1
xuzuning 2014-07-16
  • 打赏
  • 举报
回复
RewriteCond %{HTTP_HOST} ^([^\.]+).aaa.com$ RewriteRule ^(/?)(.*)$ /%1/index.html [PT,L]

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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