Support » Fixing WordPress » Bad requests go to main blog instead of 404 page

  • From what I have looked into so far this should be a .htaccess issue. This site has Digital Access Pass (DAP) installed, which protects some blog posts from the public and gives access to registered users.

    Here is the current .htaccess file:

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

    #—– START DAP —–
    RewriteCond

    %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}

    (.*)/wp-content/uploads/(.*)
    RewriteRule (.*)

    /dap/client/website/dapclient.php?dapref=%{REQUEST_URI}&plug=wp&%{QUERY_STRING} [L]
    #—– END DAP —–

    </IfModule>

    # END WordPress

    Here is the path to the proper 404 in the theme I am using:
    http://2012shiftelgie.com/content/themes/modmat/404.php

    Any help would be greatly appreciated. Even if you think it is a Digital Access Pass issue and I should make a ticket there.

    If it could be a database issue I should mention, this site was recently moved to a new server. I unfortunately do not recall the 404 situation on the original server.

    Everything else is working fine and has been for about a month.

    2012 Shift Elgie

    Thank You
    tlink211

  • The topic ‘Bad requests go to main blog instead of 404 page’ is closed to new replies.