WordPress.org

Ready to get started?Download WordPress

Forums

Post Name Permalink displays 404 after server move (19 posts)

  1. SecureMedical
    Member
    Posted 1 year ago #

    I've picked up our WP install and placed it on a newer linux Kernel. Earlier version of Ubuntu to the latest.

    Everything works correctly except the PostName permalink; I get a 404 Error. All other permalink formats work. I've done the following to troubleshoot after reading several support posts.

    1. Check .htaccess: looks good here is the content.

    # 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

    2. Removed the .htaccess file and let wordpress re-create it after saving to a different permalink format.

    3. Deans Permalink plugin.

    None of these have resolve the issue. Any suggestions would be appreciated.

  2. David Choi
    Member
    Posted 1 year ago #

  3. SecureMedical
    Member
    Posted 1 year ago #

    Yes it has been installed. I did encounter some issues with this when I first moved the server and installed it when I noticed these issues.

  4. SecureMedical
    Member
    Posted 1 year ago #

    From phpinfo.php:

    Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_status

  5. SecureMedical
    Member
    Posted 1 year ago #

    Also the old server is 32 bit and the new 64, I don't know if that makes a difference.

  6. David Choi
    Member
    Posted 1 year ago #

    If it's a public server, do you have a link?

  7. SecureMedical
    Member
    Posted 1 year ago #

    Its not public as of yet but I can expose it to the internet so you can take a look. Public DNS is already pointing to the production website (the old ubuntu install) are you able to spoof your DNS to point to another IP?

    If not I can provide directions on how to do this.

  8. SecureMedical
    Member
    Posted 1 year ago #

    I've exposed the new server with the issue; please spoof http://www.openminds.tv and openminds.tv to 64.197.73.45.

  9. David Choi
    Member
    Posted 1 year ago #

    I've visited your site, clicked on the pages and posts, it's all working fine to me:

    https://dl.dropbox.com/u/73855680/snapshots/openminds-tv.jpg

  10. SecureMedical
    Member
    Posted 1 year ago #

    You have to spoof your IP to the one I gave you. The current production site works as you stated. This is the old server, the new server you need to pull the data from this IP. 64.197.73.45.

    Please ping http://www.openminds.tv and openminds.tv on your box to make sure its replying at the 64.x address.

  11. SecureMedical
    Member
    Posted 1 year ago #

    Are you using windows or Linux to access the site? I can send directions on how to Spoof the site to the correct IP.

  12. SecureMedical
    Member
    Posted 1 year ago #

    From your screen print looks like you are using Windows. here are the instructions on spoofing via a HOSTS file in windows.

    To edit the host file,

    Click Start – search for “Notepad“, right-click and select “Run as Administrator“. This should launch notepad with elevated privileges. Now, open the host file from the File menu (browse to C:\windows\system32\drivers\etc\hosts) Select "all files" as the file type, edit and save.

    you need to add the following line to the hosts file.

    "64.197.73.45 openminds.tv"
    "64.197.73.45 http://www.openminds.tv"

    Without the quotes, also remove "http" from in front of www I'm not sure why its putting that there.

  13. David Choi
    Member
    Posted 1 year ago #

    Will do the spoofing... will get back to you after about an hour...

  14. SecureMedical
    Member
    Posted 1 year ago #

    Much appreciated for all the assistance.

  15. David Choi
    Member
    Posted 1 year ago #

    Okay, done the test, indeed it can only see the home page, not the rest. I don't think it's the WordPress problem, because I have installed in countless servers, Windows, Linux, Local Linux or Windows without any problems with permalinks.

    So I think you might wanna test if mod_rewrite is indeed working:

    http://www.vbseo.com/f77/how-check-if-mod_rewrite-working-my-site-21502/

  16. SecureMedical
    Member
    Posted 1 year ago #

    I'll test this and get back to you shortly.

  17. SecureMedical
    Member
    Posted 1 year ago #

    The test failed, I will see what's going on with the rewrite and get back to you. Thanks again.

  18. SecureMedical
    Member
    Posted 1 year ago #

    Got the rewrite fixed, here is what the problem was with the default apache install. Wouldnt have found it had I not realize rewrite was not working. Thanks again!

    https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles

  19. David Choi
    Member
    Posted 1 year ago #

    You are welcome! Glad you've found the solution on that site, hope this can help others too.

    Have a nice day!

Topic Closed

This topic has been closed to new replies.

About this Topic