WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Only my front page works- All my permalinks are 404 (15 posts)

  1. kpars
    Member
    Posted 6 years ago #

    Hi folks. I'm having a really, really weird problem.

    I've used WordPress for several years now just fine on a shared hosting account but I just bought a virtual dedicated server. I've forwarded my domain and moved all my WordPress files to the new server, including the WordPress MySQL database stuff (I used the BigDump utility to do a staggered import since my databases were too large otherwise).

    But now the only thing that works on my WordPress blog is the front page. For instance, if you try and click on the permalink to any of my posts, it just comes up with a 404. Try it yourself:

    http://www.thedailybackground.com

    I can access the WP-Admin pages and in the manage posts area I can edit posts and create new ones but then I click the "View" button next to them, it just brings me to the same 404.

    This is kind of freaking me out, so I really hope somebody here can help me out. Thanks.

  2. Bhoney
    Member
    Posted 6 years ago #

    Same thing happened to me when I upgraded my test blog. It was htaccess related. I had renamed it during the upgrade and needed to go back and rename it to what it was before the upgrade.

  3. Clare Swindlehurst
    Member
    Posted 6 years ago #

    I'm having the same issue after the 2.5 upgrade. I usually upgrade manually but did it via the dreamhost one click upgrade... it made a copy of my old database but looks like it amended both htaccess files!

  4. Dion Hulse
    WordPress Dev
    Posted 6 years ago #

    Most definately a .htaccess problem with mod_rewrite in the case of http://www.thedailybackground.com/ I'd recheck the contents of hte .htaccess, the default config doesnt work on all servers either.

  5. Clare Swindlehurst
    Member
    Posted 6 years ago #

    My site is at http://www.clareswindlehurst.com/bookreviews and http://www.clareswindlehurst.com/disneyworld.

    I managed to back the latter out to the older version but it did a database update and I lost all my pages to a 404 again.

    What are we looking for in the htaccess file?

  6. Clare Swindlehurst
    Member
    Posted 6 years ago #

    Thanks to dd32 my issue is resolved

  7. DianeV
    Member
    Posted 6 years ago #

    Sometimes, just accessing the .htaccess (Options > Reading) in the WP admin area and Updating the Permalinks structure will fix this.

  8. pebbleworm
    Member
    Posted 6 years ago #

    Hi!

    Just upgraded to 2.5 and got this problem. I have a copy of my entire previous WP installation but I can't find or see the .htaccess, it's a hidden file, apparently.

    Any tip on how to go about editing the .htaccess?

    Thanks.

  9. BJ05
    Member
    Posted 6 years ago #

    Pebbleworm

    You have to change .htaccess to htaccess.txt in order to edit it in a text editor, then change it back to before with the period in from and dropping the txt suffix.

  10. kpars
    Member
    Posted 6 years ago #

    Thanks to all of you who responded.

    Yep, it turned out to be an .htaccess problem. I had one for the server in general but I had to create a new blank .htaccess file in the base directory containing all my WordPress stuff. I did this by creating a new text file and naming it .htaccess and adjusting the permissions on the file to be writeable globally so that WordPress can write on it.

    Hopefully this helps somebody later on who finds this post on Google.

  11. kpars
    Member
    Posted 6 years ago #

    pebbleworm: often times FTP clients automatically hide the hidden files on your server just as Finder (Mac) or Explorer (PC) would on your home computer. There's usually an option in your preferences or settings for the FTP client that will allow you to view hidden files.

    For instance, I was using a Mac FTP client called Transmit and I couldn't see my .htaccess file until I enabled the "Show invisible files" option under the View menu.

  12. jpxwordpress
    Member
    Posted 5 years ago #

    Hey guys, especially dd32 (as it looks by your blog 'thedailybackground.com' that you have resolved the issue you had before, which is the same thing I am dealing with now). I have been going CRAZY myself lately with this same kind of issue - i.e. problems with updating permalinks, trying to change my .htaccess file, etc, and I still can not view actual posts on my blog site, jpopexpress.com. I'm really really frustrated now - if anyone can help, I would SO appreciate.

    Let me try to explain what happened so you could maybe better help me:

    1) First, I had an issue with one of those '500 - Internal Server Error's (I had made a duplicate post that suddenly disallowed me to edit or delete any post). I managed to fix that issue by disabling and re-enabling/updating all of the plugins that I had set up for the blog (also I upgraded to WordPress 2.6.2).

    2) I also followed one user's suggestion to change the permalink structure to the default, then I changed it back to the "Day and Name" permalink structure. This began the permalink problem.) Now I can not view any full post on my site:

    Jpopexpress.com

    3) I will also note that all my blog files reside in the "sitename.com/BLOG" structure, but are viewable in the root folder - I still really think that this may have something to do with the problem

    4) Again, as I say, I tried to edit the contents of the .htaccess file / changing permissions of that file, etc, but this did still not resolve the problem.

    Also, I looked for what used to be the "update permalink" feature, but it looks as if they no longer have that in the latest (2.6.2) versions of the WordPress interface.

    Any help anyone can provide would be so greatly appreciated...

  13. jpxwordpress
    Member
    Posted 5 years ago #

    Well this seems so crazy to me, but (maybe I kind of got this idea from reading someone else's post), on the 'Permalinks' page, I changed the "Common Settings" from 'Day and Name' to 'Custom Structure: /%year%/%monthnum%/%day%/%postname%/" and now all posts seem viewable under there names - so crazy, but just "Thank God" it works!

    Hope this can help anyone else struggling with this same difficult issue....

    good luck everyone, and keep the faith! ;)

    There is always a solution huh!!

  14. johnwar
    Member
    Posted 5 years ago #

    kpars can you share how you fixed it. I got the same problem with Bluehost.,
    Thanks

  15. jogden
    Member
    Posted 5 years ago #

    I suppose I will post here as well. Having same problem with my site http://www.designedyesterday.net . if you right click open link in a new window it comes up with a 404 error, and if you click it normal it redirects to the recent posts page. Currently only the static assigned pages are working, recent posts and the perm static home page of portfolio.

    I cant even browse my portfolio, let alone have my clients browse it, i'm just so confused. Any one willing to help, I would greatly appreciate it. thank you.
    Jennifer Louise

Topic Closed

This topic has been closed to new replies.

About this Topic