WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post Archive links render "Not Found" after moving blogs (20 posts)

  1. K. David
    Member
    Posted 3 years ago #

    Greetings, I moved two blogs from an old site to a new site and server. To move them, I installed Word Press into two sub-directories on the new site, then did .xml exports from the old blogs which I imported to the new (I did not export directly from the data base and I did not use PHP MyAdmin). These blogs now reside at: http://kalarhythms.org/usa/blog/ and http://kalarhythms.org/megarhythms/blog/

    Now, in the right hand column under the "Post Archive" header, links to posts from previous months do not work. Instead they produce a page with the message "Not Found."

    The links on the right side under "Post Archive" worked on the old blogs when they were on the old site. Neither of two new blogs has an .htaccess file.

    What can I do to restore function to the new blogs so that links to the Post Archive will work? Thank you.

  2. Go into your permalinks settings and resave them.

    Also, did you copy your .htaccess over?

  3. K. David
    Member
    Posted 3 years ago #

    Hi ipstenu, thanks for the response. After reading your reply I went to my Permalinks and did a "Save Changes" (even though I didn't make any changes). I did not copy my .htaccess over from the previous site and I cannot retrieve it. However, I did try uploading various versions of .htaccess files that I found recommended for use on the web. None of them worked. Any ideas?
    Thank you.

  4. At the bottom of the permalinks page should be a note saying either it rewrote your .htaccess or what to put in the file. Is that there for you?

  5. seven26
    Member
    Posted 3 years ago #

    if nothing else works, create an empty .htaccess file, then go to your permalinks, hit save again, and this maybe adds the needed lines to your htaccess file
    if not, do what ipstenu said: check the bottpm of the permalinks page and copy it from there

  6. K. David
    Member
    Posted 3 years ago #

    Hi ipstenu & seven26, I did another "Save Changes" on my Permalinks but it did not create an .htaccess file. So, I created and empty .htaccess file and Saved my Permalinks again, but the file is still blank. I never got a message on the bottom of the Permalinks links of any kind, only a message at the top of the page that said "Permalink stru cture updated." What can I try next?

  7. K. David
    Member
    Posted 3 years ago #

    OK, doing a Save of my Permalinks Did create an .htaccess file when I clicked to change the Permalink setting from "Default" to "Month and name." However, now that the .htaccess file is there the Post Archive links are still not working, they still produce a "Not Found" message.

  8. seven26
    Member
    Posted 3 years ago #

    with your ftp ulploader select the .htaccess file, change the attributes to 755, go and save permalinks again. If it works you are fine, if not set it to 777 and save, check. If it works put back the .htaccess attributes to 755

  9. seven26
    Member
    Posted 3 years ago #

    it that don't work, let me know what type of permalinks you want to use and I copy a code that should work

  10. K. David
    Member
    Posted 3 years ago #

    Wow! OK, I tried changing permissions and the Post Archive links still do not work (also, when I do a W3C Link Validation from http://validator.w3.org/ it show many Permalink errors). The type of Permalinks I would like are "Month and name." If this works it will be fantastic! I have many blogs that I have moved with this same problem.
    Super big Thank You for your efforts on this!

  11. seven26
    Member
    Posted 3 years ago #

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

    for Month and name

  12. seven26
    Member
    Posted 3 years ago #

    hmm I never checked, but for a first glance this look exactly the same in any cases

  13. K. David
    Member
    Posted 3 years ago #

    I do appreciate the effort, but when I tried this new .htaccess file that you kindly wrote the blog became unviewable with an "Error 500 - Internal server error." I changed permissions of the .htaccess file to 777 but the results were the same.

  14. seven26
    Member
    Posted 3 years ago #

    :( that is very strange. if you empty the htaccess file, it should go back to normal. Don't forget to save the permalinks to the default ones.

    but I suggest you to keep trying, because at a split second, the first blog worked with the permalinks you wanted. I opened one of your posts and it didn't gave me the error

    so what I would try again:
    delete the .htaccess
    create an empty one
    set permission to 777
    save permalinks
    refresh the page, check permalinks

    if works set .htaccess to 755

  15. K. David
    Member
    Posted 3 years ago #

    I have the .htaccess file you wrote in the first blog ( http://kalarhythms.org/usa/blog/ ) and there is no "Error 500 - Internal server error" now. I did something wrong that caused that to happen before. Still, the Post Archive links are not working. I don't know why they worked for a second before, but I will keep trying.

  16. seven26
    Member
    Posted 3 years ago #

    do you have some caching plugin active? usually those can cause issues like this, if you have some cache plugin deactivate it while you are testing out things, and activate only after everything is fixed. If fooled me a few times ;)

  17. K. David
    Member
    Posted 3 years ago #

    Also, I tried adjusting the .htaccess file you wrote to compensate for the fact that the blog is in a sub-directory (of /usa/blog/), because I read somewhere this is what one should do. That did not work either. The adjusted code based on what you wrote is:

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

  18. K. David
    Member
    Posted 3 years ago #

    Although I have not caching plugins, I deactivated all plugins and and set the permissions of the .htaccess to 777 and tried:
    the .htaccess file you wrote
    the .htaccess file your wrote that I modified to allow for sub-directories
    an empty .htaccess, then, I re-saved the Permalinks
    Results for all are the same. Post Archive not working.

  19. K. David
    Member
    Posted 3 years ago #

    Guess what! This issue is solved! The problem was with the template. When I switched to the Twenty-Ten template the Post Archive links worked. The template that I was using is one that I wrote myself in an earlier version of Word Press (about 2.4 OR 2.5). The Post Archive links worked in my template, even for the current 3.01 version, when it was on the old server. However, the Post Archive links stopped working in my template when I moved to a new server, until, I switched away from my template to use another. Now the Post Archive links work!

    The .htaccess file that have now was created by sending up and an empty .htaccess file, then re-saving the Permalinks. When the good suggestions offered by you and ipstenu did not work, I figured the must be an idiosyncrasy on my end, and it was my template.

    Many big thanks for your attention. Your help led me to figure this out.

    Gratefully yours - David

  20. seven26
    Member
    Posted 3 years ago #

    :) glad to see it worked

Topic Closed

This topic has been closed to new replies.

About this Topic