Support

Account

Home Forums Add-ons Options Page Options page save redirecting to 404 Reply To: Options page save redirecting to 404

  • we’ve already determined that /wp-admin/admin.php is never loaded because we tried putting code at the top of that file.

    we know that the file exists, or at least it should exist. The only reason that the .htaccess file should be redirecting is if the file does not exist. This line in the .htaccess file checks

    
    RewriteCond %{REQUEST_FILENAME} !-f
    

    If the file exits then the rewrite is not done.

    I’m not sure how to troubleshoot past this point. I might suggest some things.

    In your 404 page output the content of $_SERVER.

    ‘echo ‘

    '; print_r($_SERVER); echo '

    ‘;

    See if you can figure out exactly what the server thinks the requested file is. Do the same with $_POST and $_ENV.

    To be honest, I don’t know what to tell you to look for. I’m just shooting in the dark. I would do these things and study the output and hopefully I’d see something that made it all make some kind of sense without really knowing exactly what I was looking for.