0
我喜欢摆脱重复的内容。 我的网站可以使用和不使用www。所以我做了这样的modrewrite:mod_rewrite重复内容
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com [r=301,nc]
我的问题是,我仍然可以到达网站有和没有/索引在最后。并带和不带.html
我喜欢在URL中显示索引。 example.com www.example.com全部重定向到www.example.com/index
带和不带html都适用于我的所有子页面。有没有办法总是删除HTML?