在谷歌搜索引擎优化的考虑了使用的.htaccess规则忽略顶级目录搜索引擎优化、规则、目录、htaccess

2023-09-02 10:03:01 作者:不谈年少的爱恋。

我现在用的混凝土5 CMS建立一个网站,我想推住。

我有code在一个名为 /concrete5.5.2.1 键,而不是更新的参考文献数据库和移动code上文件系统,我考虑使用一个.htaccess规则来有效地忽略该目录。

不过,我渴望知道做这样的事情下方将意味着谷歌将指数/concrete5.5.2.1?或者,将这个被忽略?

  RewriteEngine叙述上
重写规则^ concrete5.5.2.1 /(.+)$ http://www.ayrshireminis.com/$1 [R = 301,L]
 

解决方案

谷歌会就像所有其他用户只能看到您所提供的网址。因此,他们将不知道该目录的存在。

I am using the Concrete 5 CMS to build a website and i'd like to push it live.

谷歌搜索精准答案大调整 不显示网页结果对SEO自然优化影响

I have the code in a directory called /concrete5.5.2.1 and rather than updating the references in the database and moving the code on the filesystem, i'm considering using an .htaccess rule to effectively ignore that directory.

However, I'm keen to know if doing something like this below would mean that Google would index the /concrete5.5.2.1? Or would this be ignored?

RewriteEngine On 
RewriteRule ^concrete5.5.2.1/(.+)$ http://www.ayrshireminis.com/$1 [R=301,L]

解决方案

Google will be just like every other user and only see the URLs you provide. So they will not be aware that directory exists.