• I am working on a site that has the most bizarre error. Any page on their site serves up a 404 error page: /about, /faq, etc. The home page loads up fine, the archive pages show up fine, and the single posts show up fine…It’s just the pages that show a 404 error.

    The first thing I did was go into Settings > Permalinks and clicked “Save Settings” to try to get WordPress to reset the htaccess file, but that didn’t work.

    So then I deleted the htaccess file and tried it again, still it didn’t work. So I changed the permalink structure to the default (?p=xx) and the pages came up just fine.

    Every other permalink structure serves up 404 error pages for the site except the default

    I’m out of ideas on how to troubleshoot this. Anybody have any suggestions?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Did you do the plugins/theme thing?

    Thread Starter klongdesigns

    (@klongdesigns)

    Yes, I have…doesn’t have any effect on it.

    Thread Starter klongdesigns

    (@klongdesigns)

    site is www i-heart-the-mart com (minus all the dashes and periods instead of spaces)

    Can you go directly to the page url?

    How about deleting wp-admin and wp-includes. Upload fresh copies of those folders to the site.

    Thread Starter klongdesigns

    (@klongdesigns)

    typing it in directly brings up the 404 error page. Trying to go to the original link (/?p=2) resolves to /about/, which serves a 404 page.

    I deleted and uploaded fresh copies of WordPress, but the problem still persists.

    So I changed the permalink structure to the default (?p=xx) and the pages came up just fine.

    And the htaccess was changed?

    Do you have full URL example by chance? The 404 error is usually the “page not found” error. Could be in the web server itself or permissions, could be alot of things really. An example URL would be very helpful for us to help you. Thank you

    Are you using pretty permalinks?

    Thread Starter klongdesigns

    (@klongdesigns)

    Pretty Permalinks as in I went to settings > permalinks and changed it to show month and day. Also tried all the other default options.

    I’m not using the pretty permalinks plugin, if that’s what you mean.

    Yes, I did not mean the plugin.

    What does the htaccess say?

    Thread Starter klongdesigns

    (@klongdesigns)

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

    # END WordPress

    That looks right. I guess the only thing left is the database. You can check the options table for the correct permalinks. I don’t know where any specific page options or info is stored.

    When I go to the site with Chrome and the javascript console turned on and set to “all” I see 4 errors. When I go to site/admin I see 5 errors. You might want to check that out.

    Thread Starter klongdesigns

    (@klongdesigns)

    But the errors come AFTER the page is loading the 404 template page, so something is happening at the server level (either a misconfiguration of the htaccess file or something) that is causing the “page” permalink to not be found by wordpress, so it serves up the 404 page. Since the javascript errors are AFTER the decision has been made to show the 404 page, it shouldn’t pertain to the issue I’m having with not getting the page to show up.

    I did check the options in the database, and it does show the permalink to be setup as /%year%/%monthnum%/%day%/%postname%/

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘WordPress Pages giving 404 Error…all other posts are fine.’ is closed to new replies.