WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess file and 404 redirects to our sitemap (1 post)

  1. adtron
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic