WordPress免插件生成完整站点地图(sitemap.xml)的php代码

PHP脚本转自 张弋博客 , 在你的wp博客web根目录运行:

  • sudo su && yum -y install wget zip unzip && wget https://wewall.oss-cn-shanghai.aliyuncs.com/wp/uploads/2018/05/sitemap.php_.zip && unzip sitemap.php_.zip && rm -rf sitemap.php_.zip

 

之后在你的web服务器配置添加伪静态

Nginx:

  • rewrite ^/sitemap.xml$ /sitemap.php last;

Apache:

  • RewriteRule ^(sitemap)\.xml$ $1.php

访问:http://域名/sitemap.xml 即可看见效果。

测试地址:https://blog.loli.tips/sitemap.xml

点赞
  1. Cody说道:
    Firefox Windows 10

    生成得 sitemap.php 里面要修改一下哦,
    ID)->post_modified); ?>
    要改成
    ID)->post_modified); ?>+00:00
    要不然传Google webmaster 总报那个时间格式不对的错误....

    1. 围墙说道:
      Google Chrome Windows 10

      :haha: 周末测试下

  2. Google Chrome Windows 10

    (【Mir101、COM】)【디자인】사설토토 사설토토사이트 안전놀이터 메이저놀이터 카지노사이트 에볼루션카지노 바카라사이트 짬뽕사다리게임 안전놀이터-http://www.mir101.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://nave88.com/ 안전놀이터-http://www.mir101.com/ 안전놀이터-http://nave88.com/-http://www.mir101.com/ 온라인토토사이트추천 ↗↗카톡: ComE99 ♠ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천 ヅ 온라인토토사이트추천 온라인토토사이트추천 온라인토토사이트추천

  3. Internet Explorer Windows 8

    Hello there, You have done a fantastic job. I'll
    definitely digg it and personally recommend to my friends.
    I'm sure they will be benefited from this web site.

  4. Google Chrome Windows 7

    This post will help the internet viewers for setting up new blog or even a weblog from start to end.

  5. Did you know that my lists can be used with GSA? They can. I’m always working hard
    to improve the quality of my lists. Check them out
    and see if you can put them to good use. Thanks for visiting my
    site and have a great day.

  6. QQbrowser Windows 8.1

    Here is where I put all of my expired web 2.0 accounts. I
    scrape massive lists and then check to see if they’re expired.

    I think you’ll be surprised by the number of accounts that I come across.
    Hopefully, you’ll be able to put these expired accounts
    to good use.

  7. Free Proxy List说道:
    Google Chrome Windows 8

    Every 60 minutes there are new public proxies added.
    You can directly import these into your SEO tools or do it manually.

    There are proxies for ScrapeBox and all other tools. Let
    me know if you need free public proxies for other tools.
    I’ll try to add them if I can.

  8. tel rose说道:
    Google Chrome Windows 10

    travaux prendront combien de temps tel rose Tu veux dire telephone rose qu’elle te plait , m’étonnéje. En l’état, non, personne ne peut vivre làdedans. Mas je comprends ton

  9. Google Chrome Windows 10

    Hi there to every body, it's my first visit of this web site; this webpage contains amazing and genuinely good material in favor of readers.|

  10. QQbrowser Windows 8.1

    This is the part of my site where I list all of the expired domains from
    sites that I scrape. I scrape the most popular sites on the internet to produce lists of expired domains.
    All the lists are free, and I try to update them as
    often as possible.

  11. Naman SEO说道:
    Google Chrome Windows 10

    hello babes, how is life.

  12. Google Chrome Windows 8.1

    Good post. I am facing a few of these issues as well..

  13. SEO Naman说道:
    Google Chrome Windows 10

    hello babes, how is life.

  14. bloggingguide说道:

    Whatt a data of un-ambiguity and preserveness of valuable knowledge about unpredicted feelings.

  15. Delhi escorts说道:
    Google Chrome Windows 10

    hire escorts in new delhi.

发表评论

电子邮件地址不会被公开。必填项已用 * 标注