daily pastebin goal


a guest Jan 12th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Thêm các quy tắc sau vào file conf.d
  2. # Rewrites for Yoast SEO XML Sitemap
  3. rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
  4. rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
  6. //Hoặc Thêm các quy tắc mở rộng
  7. #Yoast SEO Sitemaps
  8. location ~ ([^/]*)sitemap(.*).x(m|s)l$ {
  9. ## this rewrites sitemap.xml to /sitemap_index.xml
  10. rewrite ^/sitemap.xml$ /sitemap_index.xml permanent;
  11. ## this makes the XML sitemaps work
  12. rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 last;
  13. rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
  14. rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
  15. ## The following lines are optional for the premium extensions
  16. ## News SEO
  17. rewrite ^/news-sitemap.xml$ /index.php?sitemap=wpseo_news last;
  18. ## Local SEO
  19. rewrite ^/locations.kml$ /index.php?sitemap=wpseo_local_kml last;
  20. rewrite ^/geo-sitemap.xml$ /index.php?sitemap=wpseo_local last;
  21. ## Video SEO
  22. rewrite ^/video-sitemap.xsl$ /index.php?xsl=video last;
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand