• Resolved Juhan

    (@juhan108)


    Dear plugin creators!

    All my site files are in example.com/subdirectory, but the site shows in a browser as being in the root directory example.com.
    WP Meta SEO offers to me the link of XML Sitemap as example.com/wpms-sitemap.xml. If I click the orange button “Open”, I get the 404 error.
    Being in the server file manager, I can find the file wpms-sitemap.xml in the example.com/subdirectory.

    The site’s copy, which files are in subdirectory and which shows also in a browser as being in the subdirectory, there the WP MS sitemap can be opened and all is right.

    I use Classic Press 1.4.1, based on WP 4.9x.
    The .htaccess is:

    # BEGIN ClassicPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END ClassicPress
    • This topic was modified 2 years, 2 months ago by Juhan.
    • This topic was modified 2 years, 2 months ago by Juhan.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Juhan

    (@juhan108)

    Sitemap is anyway working; I just needed to introduce Google it’s adress in the example.com/subdirectory. So, better not to copy it to the root directory?

    • This reply was modified 2 years, 2 months ago by Juhan.

    Hi, I don’t know why the plugin gives the wrong sitemap URL on your website. It works correctly on my WordPress site. Anyway, you shouldn’t copy the sitemap file to the root directory, just introduce to Google the correct sitemap url in the subdirectory.
    Cheers,

    Thread Starter Juhan

    (@juhan108)

    Thank You for advice!

    Thread Starter Juhan

    (@juhan108)

    Resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sitemap, if site is in subdirectory’ is closed to new replies.