WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WordPress' .htaccess overrides error pages... (4 posts)

  1. Janko
    Member
    Posted 7 years ago #

    Hi,

    I have a following situation:

    WordPress (2.1) installed in "abc" directory (/abc/) and a .htaccess file modified as WordPress said:

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

    There is just one problem - when I load that .htaccess my [server's] error pages are being ignored - i.e. when I type wrong adress (www.myserver.com/blabla) it redirects me to the error page of the WordPress template.

    How to keep both permalinks and the servers' error pages??

    Regards,
    Janko

  2. Chris_K
    Member
    Posted 7 years ago #

    that .htaccess file is in /abc, right?

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Above the WordPress .htaccess code, add these to bypass WordPress's error pages:

    ErrorDocument 404 /path/to/your/404/document.html

    and so forth. One for every error number that you want to redirect to.

  4. Janko
    Member
    Posted 7 years ago #

    Ok, it works; thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic