WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Please help! Seriously Messed-Up htaccess file! (6 posts)

  1. lukep
    Member
    Posted 5 years ago #

    Thank you for reading this.

    I've got an older site recently upgraded from 2.7.1 to 2.8. The upgrade went well except for this one issue:

    I can't access any pages or posts!

    They all still exist, and the permalink structure, /%catagory%/%postname%/, is still the same as it was before the upgrade. The theme (Vistalicious) is the same too.

    However, both pages and posts aren't accessable and I get sent to the 404 page every time.

    When I try to go to a POST now, the post will be formed (every link site-wide) like:
    domain.com/%category%/the-correct-post-name

    (And if I manually enter the correct category into that string instead of %category% then I am taken to the working post.)

    But where this really gets weird is with the pages. When I go to a PAGE now, the path is correct but I still get the 404.

    :(

    I've tried deleting the .htaccess file and the new one doesn't fix the problem. I've tried changing the permalink structure, but the pages never are accessable. I'm out of options now, and the blog pages are completely broken in the meantime.

    Please someone, I'm really desperate here, this one is driving me nuts. Any new ideas I can try???

    Thanks,
    Luke

  2. lukep
    Member
    Posted 5 years ago #

    And in case it helps to see what's being generated in my htaccess file, here it is:

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

    Thanks again!

  3. nazcar
    Member
    Posted 5 years ago #

    rewrite your permalinks, try deleting the backslash at the end of your permalink

    /%year%/%monthnum%/%postname%
  4. lukep
    Member
    Posted 5 years ago #

    Thanks for writing, Nazcar,

    Wow, that makes it even more weird.

    I just stripped off the trailing /, and then deleted my .htaccess file and watched it regenerate a new one.

    The pages didn't work any better... But the post pages resolve (show up) now!

    -The weird part is that the path to these posts in the address bar above is still showing /%category%/ in the path!

    I can't understand how that is working, but the page shows up nonetheless. It's so odd!

  5. lukep
    Member
    Posted 5 years ago #

    AHA! I just spelled category wrong in my permalink settings!

    I spelled it 'catagory' by mistake... And when I just changed it back, everything is working now as it should.

    Thanks to nazcar for your help, I'll mark this one resolved.

  6. nazcar
    Member
    Posted 5 years ago #

    you're welcome..

Topic Closed

This topic has been closed to new replies.

About this Topic