Apache的重写,主页 [英] Apache rewrite, home page

查看:119
本文介绍了Apache的重写,主页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在主页网站的重写 www.example.com

I am trying to rewrite the "home page" of the website to www.example.com.

主页现在可以通过 www.example.com/dir/userdo?action=home

我的想法是 www.example.com 真的 www.example.com/index.html 因为Apache自动隐藏 /index.html ,所以我试图

My thoughts are www.example.com is really www.example.com/index.html since apache auto hide the /index.html, so I tried

重写规则/index.html /dir/user.do?action=home [PT,L]

这是行不通的。

有人可以给我一个想法正确的方法解决这个问题?谢谢

Can someone give me an idea the right approach to this problem? Thanks

推荐答案

重写规则^ / $ / DIR / userdo?行动=家庭[L]

默认的index.html可以用的DirectoryIndex 指令来改变。

the default index.html can be changed with DirectoryIndex directive.

这篇关于Apache的重写,主页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆