对于上帝的爱,我似乎无法得到这个mod_rewrite正常工作。我不要在这里试试暴力试验和错误,而要问这里。mod_rewrite条目的适当位置在哪里?
- 我想mod_rewrite规则适用于所有域。
- 我想在httpd.conf
我想摆脱这种WWW病毒(搜索引擎优化的目的)的mod_rewrite的条目:
我想摆脱指数。 HTML(搜索引擎优化,谷歌索引它,而不是只是域名):
http://www.example.com/index.html>http://example.com
http://www.example.com/some/index.html>http://example.com/some/index.html
域是内部<virtualhost>
条目。我无法弄清楚在哪里放置什么或哪一个应该优先考虑。正如我所提到的,我想将这两条规则应用于服务器中的所有域。
ssl.conf加剧了这种情况。所有这些都需要输入到ssl.conf吗?当有2个重定向时会发生什么:
http://www.example.com/index.html > http://example.com/index.html > http://example.com
非常感谢。这很快就变得非常混乱。
玛丽亚