• Resolved passegua

    (@passegua)


    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 On
    RewriteRule ^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

    • This topic was modified 1 month ago by passegua.
    • This topic was modified 1 month ago by passegua.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Auctollo

    (@auctollo)

    Thank you @passegua!

    Thread Starter passegua

    (@passegua)

    You are welcome, but then which is the solution and the answer?

    Thanks.

    Plugin Author Frederick Townes

    (@fredericktownes)

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^sitemap(-+([a-zA-Z0-9_-]+))?\.xml(\.gz)?$ /wordpress/sitemap$1.xml$2 [L]
    </IfModule>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.