Phi*_*ere 6 html php apache url mod-rewrite
当我在浏览器(mysite.com)中键入我的网站地址时,它会重定向到mysite.com/index.php.为什么不去index.html?因为我在Apache 2.2的conf文件中更改了它.
如果通过寻找谷歌,你最终会访问www.google.com/index.html,这不会很难看吗?......这只是为了美学,但上帝对某些人来说很重要.
Thi*_*ker 10
我不知道为什么你需要使用mod_rewrite.在我的网站上我没有做任何隐藏index.php,我只是不把它指向代码中的任何地方,所以我只是写www.example.com/?task而不是www.example.com/index.php?task=forum =论坛.它适用于标准的apache配置.