Your website without www doesn't redirect to www (or the opposite). It's duplicate content!Redirecting requests from a non-preferred hostname is important because search engines consider URLswith and without "www" as two different webs
我看了很多其他的“两个域,一个服务器”的问题,并没有看到我正在寻找的东西……A) example1.com仅加载普通的index.html文件(在wordpress安装上) B) example2.com转到子文件夹/forums/我在想,我可能只需要一个重写规则就可以让example2.com转到/forums/?
我希望这是有意
我从这里拿到了我的.htaccess文件的以下代码,并尝试根据我从.htaccess中的理解对其进行调整,但我似乎无法使其工作(或者可能浏览器已经缓存了它,但我似乎无法清除它)。IfModule mod_rewrite.c>
RewriteEngine On
# Non-secure requeststo www.domain.com should redirect to https: