Apache rewrite, home page
问题 I am trying to rewrite the "home page" of the website to www.example.com . The home page right now can be accessed via www.example.com/dir/userdo?action=home My thoughts are www.example.com is really www.example.com/index.html since apache auto hide the /index.html , so I tried RewriteRule /index.html /dir/user.do?action=home [PT,L] which does not work. Can someone give me an idea the right approach to this problem? Thanks 回答1: RewriteRule ^/$ /dir/userdo?action=home [L] the default index