Permalink and sitemap problem with .htaccess (2 posts)

  1. azabari
    Posted 3 years ago #


    i have installed wp under a subdirectory (/blog) to my existing site. I have added the following .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    # END WordPress

    When I try to change the permalink structure or add a sitemap with the following plugin "google xml sitemap" the .htaccess file gets deleted and the blog shows a page not found error.

    What should I do?

    Thank you in advance

  2. Tara
    Volunteer Moderator
    Posted 3 years ago #

    try reading Using_Permalinks before setting a custom permalink structure and see if it helps.

Topic Closed

This topic has been closed to new replies.

About this Topic