• Hi,

    I installed WordPress today. It asked that the following code be added to our .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    Now, if a URL is not found, it takes me to the a blog page rather than our sitemap.html page. This is what the file contained before I modified it with the WP stuff:

    AddType application/x-httpd-php .php .html
    ErrorDocument 404 /sitemap.html

    The above is still in the file, but the 404 redirects do not display the sitemap.html anymore. They display a WP blog page.

  • The topic ‘.htaccess file and 404 redirects to our sitemap’ is closed to new replies.