Hỏi đápCategory: HocVPS ScriptXin hỏi về XML sitemaps trong hocvps
khoikhoi26 asked 9 years ago

Chào Luân!

Cho mình hỏi mình cài họcvps script để sử dụng cho mã nguồn wordpress và mình có cài plugin xml sitemap generator 4.0.8 nó bắt mình phải làm như thế này.
” Webserver Configuration
Since you are using Nginx as your web-server, please configure the following rewrite rules in case you get 404 Not Found errors for your sitemap:
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ “/index.php?xml_sitemap=params=$2” last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ “/index.php?xml_sitemap=params=$2;zip=true” last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ “/index.php?xml_sitemap=params=$2;html=true” last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ “/index.php?xml_sitemap=params=$2;html=true;zip=true” last; ”

Xin hỏi giờ mình phải làm sao để thêm đoạn code đó vậy.