• I am trying to learn to successfully move a website to a new server and change the URL to a new domain. While there are a number of plugins that claim to be able to seamlessly do this, I have yet to find one that works with a modestly large site. The website I am trying to move is approaching one Gigabyte and the 4 plugins I tried all failed.

    I have manually moved a test site (angiecaravalia.com) and the home page comes up perfectly (almost). Unfortunately, if you click on any posts, page links, etc. the result is a 404 page not found error. Someone told me the HT Access file is missing and/or corrupt, so I removed and recreated it as a basic wordpress HT Access file, but the result it the same.

    If anyone has any insight into what I may be overlooking, I would be most appreciative. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey mcaravaglia, have you tried to debug, or to allow repair of the database?
    GL!

    Thread Starter mcaravaglia

    (@mcaravaglia)

    Thank you for responding Axel. I am unable to log into the WordPress Admin Page, because I get the same 404 error when I try to go to https://angiecaravaglia/wp-admin. Other than the home page, not one link works.

    About the only thing I can do is access the Cpanel, but I cannot find anything wrong and the htaccess file is present in the root folder.

    You’re welcome, mcaravaglia. I see you did not manage to solve this yet. Still I think allowing WordPress to repair your database could help. You do not need to access wp-admin for this. It can be done with CPanel’s File Manager or with an FTP-program like FileZilla.

    01. Open the folder where your WordPress is installed.
    02. Download “wp-config.php” to your computer.
    03. Open “wp-config.php” in a text editor, f.ex. Notepad, Notepad++ (Windows) or Sublime Text (Mac)
    04. Scroll down to where you see: “/* That’s all, stop editing! Happy blogging. */”
    05. Paste the following before that line:
    define( 'WP_ALLOW_REPAIR', true );
    06. Save.
    07. Upload it to the folder where WordPress is installed (overwriting the old).
    08. Visit https://angiecaravaglia/wp-admin/maint/repair.php

    You should see a screen with the WordPress logo, 2 buttons and some explanation.

    09. Click “Repair and optimise database”.
    10. In wp-config.php replace the ‘true’ in define( ‘WP_ALLOW_REPAIR’, true ); with ‘false’ or delete the entire line.
    11. Upload it again.

    Hopefully this will solve the problem. It’s most likely a database issue, but if data is completely missing, WordPress cannot repair it.

    Thread Starter mcaravaglia

    (@mcaravaglia)

    Thank you again Axel. I have done as you suggested and the problem still persists. I assume something is missing and I will need to look elsewhere for the solution.

    I find it weird that your wp-admin is not available. Since you say that you changed the URL, perhaps it would help to login to phpMyAdmin and search for the old domain name. You can find phpMyAdmin in CPanel and the search is in the upper menu.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HT Access file’ is closed to new replies.