Wordpress 谷歌可以';由于301错误,无法爬网站点
问题: 就像一个彻头彻尾的noob,我做了301重定向,而不是302重定向。现在谷歌正在努力寻找新网站。我从HTML网站转到WordPress网站。我在建立新网站的时候做了一个301重定向。显然“永久”并没有在我的脑海中出现。我现在正试图让谷歌抓取,但301似乎正在影响我创建准确网站地图的能力。我相信这是谷歌无法正确抓取我的网站的原因之一 目标:Wordpress 谷歌可以';由于301错误,无法爬网站点,wordpress,.htaccess,redirect,http-status-code-301,http-status-code-302,Wordpress,.htaccess,Redirect,Http Status Code 301,Http Status Code 302,问题: 就像一个彻头彻尾的noob,我做了301重定向,而不是302重定向。现在谷歌正在努力寻找新网站。我从HTML网站转到WordPress网站。我在建立新网站的时候做了一个301重定向。显然“永久”并没有在我的脑海中出现。我现在正试图让谷歌抓取,但301似乎正在影响我创建准确网站地图的能力。我相信这是谷歌无法正确抓取我的网站的原因之一 目标: 修复URL,以便Google可以找到该网站并进行爬网。从本质上讲,该网站已经从悬崖上跌落。我已经尝试了我在Goggle网站管理员工具中知道的每一个技
- 修复URL,以便Google可以找到该网站并进行爬网。从本质上讲,该网站已经从悬崖上跌落。我已经尝试了我在Goggle网站管理员工具中知道的每一个技巧,但我无法让新网站出现在搜索结果中
- 在新URL上启用HTTPS
- 最好将其作为主URL
- 寄往
- 前进 到
- 将网站向上移动一步 目录,然后301重定向所有流量
themurraypestcontrol.com/general-pest
themurraypestcontrol.com/termites
themurraypestcontrol.com/bed-bugs
themurraypestcontrol.com/contact-us
robots.txt
User-agent: *
Allow: /
Sitemap: https://themurraypestcontrol.com/sitemap.xml
.htaccess
htaccess有很多我从未见过的东西,但我知道可以从.htaccess执行301或302
# BEGIN WordPress
AddHandler application/x-httpd-php70 .php
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 6 hours"
ExpiresByType image/jpeg "access plus 6 hours"
ExpiresByType image/gif "access plus 6 hours"
ExpiresByType image/png "access plus 6 hours"
ExpiresByType text/css "access plus 6 hours"
ExpiresByType application/pdf "access plus 1 week"
ExpiresByType text/javascript "access plus 6 hours"
ExpiresByType text/html "access plus 10 minutes"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 3 hours"
</IfModule>
Header set X-Endurance-Cache-Level "2"
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Wordfence WAF
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
# END Wordfence WAF
#开始WordPress
AddHandler应用程序/x-httpd-php70.php
过期于
ExpiresByType图像/jpg“访问加6小时”
ExpiresByType图像/jpeg“访问时间加6小时”
ExpiresByType image/gif“访问时间加6小时”
ExpiresByType图像/png“访问时间加6小时”
ExpiresByType文本/css“访问时间加6小时”
过期按类型应用程序/pdf“访问加1周”
ExpiresByType文本/javascript“访问时间加6小时”
ExpiresByType text/html“访问加10分钟”
过期按类型图像/x图标“访问加1年”
ExpiresDefault“访问加3小时”
标题集X-耐久性-缓存级别“2”
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
#Wordfence WAF
要求全部拒绝
命令拒绝,允许
全盘否定
#结束字围栏WAF
您何时执行301重定向?bcz谷歌将需要时间来抓取,你需要再添加一次,就像在网站管理员下一样tools@charankumar现在已经有几个星期了。@charankumar如果网站地图搞砸了,谷歌怎么能爬行呢?