WordPress.org

Ready to get started?Download WordPress

Forums

Permalink and sitemap problem with .htaccess (2 posts)

  1. azabari
    Member
    Posted 1 year ago #

    Hi,

    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]
    </IfModule>
    # 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
    Member
    Posted 1 year ago #

    try reading Using_Permalinks before setting a custom permalink structure and see if it helps.
    http://codex.wordpress.org/Using_Permalinks

Topic Closed

This topic has been closed to new replies.

About this Topic