Move your sitemap to your domain root
-
I read this:
If your WordPress site is installed in a subdirectory, such as example.com/blog/, your sitemap will be generated at example.com/blog/sitemap.xml by default. However, if you want to move your sitemap to example.com/sitemap.xml, you can do so by entering “https://example.com/blog/” in the “Override the base URL of the sitemap” field on the plugin settings page.
Since my WordPress in in https://www.sinapsi.org/wordpress/
and I want to move the sitemap to https://www.sinapsi.org/
I should enter “https://www.sinapsi.org/” in the “Override the base URL of the sitemap” field on the plugin settings page and not https://www.sinapsi.org/wordpress/ as written in the FAQ.
Moreover I read the rewrite rule to add to .htaccess file and again I am puzzled since I should use the root address so I don’t understand what should I write instead of “/your-blogdir/”
<IfModule mod_rewrite.c>
RewriteEngine OnRewriteRule ^sitemap(-+([a-zA-Z0-9_-]+))?\.xml(\.gz)?$ /your-blogdir/sitemap$1.xml$2 [L]
</IfModule>And why “This rewrite rule will redirect requests for the sitemap from example.com/sitemap.xml to example.com/blog/sitemap.xml.” ?
I think the rule should redirect from: example.com/blog/sitemap.xml to the root: example.com/sitemap.xml
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.