在谷歌搜索引擎优化的考虑了使用的.htaccess规则忽略顶级目录 [英] the Google SEO considerations over using .htaccess rule to ignore top level directory

查看:141
本文介绍了在谷歌搜索引擎优化的考虑了使用的.htaccess规则忽略顶级目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在用的混凝土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.

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.

这篇关于在谷歌搜索引擎优化的考虑了使用的.htaccess规则忽略顶级目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆