当我在WordPress上运行我的网站时,我的网站也在索引谷歌的索引,我的Alexa排名也在下降,但自从我在Core php上创建我的网站以来,我的网站的网站地图没有在谷歌索引,我的网站的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]
有人帮助我,我对我的网站非常不满。
站点地图与.htaccess文件无关,您需要重新提交您网站的站点地图,这就是名称如sitemap.xml,它的.xml文件。
如果您没有准备好此文件,可以在此处使用自动化站点地图生成工具https://www.xml-sitemaps.com/
给你的网站的网址,并下载文件并将其放入网站的根文件夹,除此之外你还必须有一个robots.txt文件,你需要提供站点地图文件的路径。
现在只需将站点地图文件的url路径提供给google / bing网站管理员工具即可