WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Moving to a new host (7 posts)

  1. maorb
    Member
    Posted 4 years ago #

    Hi,

    I intend to move my site to another host provider (the domain name will remain the same name).
    After I moved all the source code and also the MySQL database, I want to check that the site is working properly before changing the DNS to point the new host.
    I got from the new host the IP of the site for checking, but when trying to browse this IP I get only the theme presented with the header and sidebar, with the 404.php instead of the Home Page (which is a static page).
    When I try to browse to /wp-admin to see the admin panel, I et a server error 500.
    Is it impossible to fully check the site before changing the DNS? or is there any problem in my configuration? (the wp-config.php has been well updated, also the database is well imported to the new server).

    Thanks

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Is it impossible to fully check the site before changing the DNS?

    Only if you change the site url settings.

  3. maorb
    Member
    Posted 4 years ago #

    I've changed in the wp-options table the siteurl and home fields to the temporary address, which is http://IP_Address/~username/domain_folder

    I manage now to see my homepage, but every inner pages are not viewable and I get not found error (maybe something with the .htaccess?)
    Also, the wp-admin for the admin menu is also still unavailable.

    Is there anything more I should change in order to fully check the site at the new host?

    Thanks,
    M.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    You might want to try resetting your custom permalinks to the default setting for now.

  5. maorb
    Member
    Posted 4 years ago #

    How could I reset them, if for now with the temp URL in the new host, the wp-admin is not available?
    Should I just delete the lines between #begin wordpress and #end wordpress that appears in the .htaccess file?

    And if I reset them now, will after setting them again later, all the current permalinks will be still preserved?

    Thanks

  6. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Should I just delete the lines between #begin wordpress and #end wordpress that appears in the .htaccess file?

    Or you can just remove the entire .htaccess file for now.

    And if I reset them now, will after setting them again later, all the current permalinks will be still preserved?

    Providing you use exactly the same custom structure as before, yes.

  7. maorb
    Member
    Posted 4 years ago #

    Well, the problem have been solved.

    The inner pages didn't work, since the .htaccess file has redirected them to ./ instead to ./temp-url-with-IP ...

    About the wp-admin -
    After I extracted all the files using the cPanel File Manager, all of the file and folder permissions were reset to 777.
    Since the new host has a security system, it could run the admin if is has group or everyone write permission to the file.
    I just don't understand why they couldn't tell me that at the begining. They should know that. Instead, they tried to claim I have a viurs/trojan at my php files.

    Thanks esmi for your support!
    M.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.