我的核心php网站站点地图未在Google网站管理员中建立索引

时间:2019-02-08 04:45:21

标签: php sitemap google-webmaster-tools

当我在WordPress上运行网站时,我的网站也在索引Google的索引,而我的Alexa排名也在下降,但是自从我在Core php上创建网站以来,我的网站的站点地图就没有在Google和我的网站的索引中Alexa的排名不应该降低。

我的网站地址是:sarkari result

.htaccess文件

RewriteEngine On RewriteRule ^([0-9]+)/([a-zA-Z0-9-]+)$ category.php?Id=$1&category=$2 RewriteRule ^([a-zA-Z0-9-]+)/([0-9]+)$ post_details.php?post=1&postid=$2 [L] RewriteRule ^([a-zA-Z0-9-]+)$ post_details_wp.php?wp_post=$1

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [R=301,L]

RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

有人帮助我,我对我的网站感到非常沮丧。

1 个答案:

答案 0 :(得分:0)

站点地图与.htaccess文件无关,您需要重新提交网站的站点地图,该站点名称类似于sitemap.xml,它是一个.xml文件。

如果您尚未准备好此文件,可以在此处https://www.xml-sitemaps.com/使用自动站点地图生成工具

提供网站的网址,然后下载该文件并将其放入网站的根文件夹中,此外,您还必须具有robots.txt文件,并且需要在其中提供指向Sitemaps文件的路径。

现在只需将站点地图文件的网址路径提供给google / bing网站管理员工具,就可以了