Support » Fixing WordPress » Forwarding 404 Error

  • Resolved MTWK-Applied

    (@mtwk-applied)


    I’m trying to forward wordpress errors to a non-wordpress page using htaccess.

    I have this .htaccess in the theme directory.

    php_value memory_limit 150M

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /new/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /new/index.php [L]
    </IfModule>
    <Files “wp-cron.php”>
    Allow from All
    Satisfy Any
    </Files>
    <Files “/var/www/vhosts/domain.com/httpdocs/new/wp-cron.php”>
    Allow from All
    Satisfy Any
    </Files>
    # END WordPress

    ErrorDocument 404 http://domain.com/errorPage.html

    The error forwarding is being ignored and is going to “No Results Found. Is there a workaround? Do I need to us the no-results.php for the theme? Does the no-results.php handle all errors?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Forwarding 404 Error’ is closed to new replies.