• I need to reinstall WordPress because it was hacked. It has been temporarily fixed and is working but every week or so it gets hacked again in the same way.

    Could I install it on another domain that I use for testing purposes (at the same host) and then when it is totally customized and tested, just change the names of the directories?

    In WordPress I would also have to change the WordPress Url and Blog Url.

    Would the MySQL database keep working okay?

Viewing 3 replies - 1 through 3 (of 3 total)
  • It depends….

    On your web host. And how they have setup things. In the worst case scenario, the two domains might even be on different web servers.

    Mainly for security reasons, I would recommend against your approach. Allowing one domain name to have access to the database on another domain name often requires opening up access to “other people”, too.

    What I do, and recommend, is to have your test environment as isolated as possible from your production (“live”) environment. Separate filespaces, typically in separate accounts or subaccounts, as opposed to hanging a bunch of different domains off different folders of the same filespace, is usually enough. And about all I can afford.

    To move WordPress from one domain to another is mostly just FTP’ing the directory structure (of the WordPress files) from old site to PC to new site. And backing up your WordPress database from old site to your PC. And restoring it to your new site. Change wp-config.php and the Blog and WordPress folder URI’s as described here: https://codex.www.ads-software.com/Moving_WordPress (some of the linked references on other sites are good reading, too).

    Hi,

    First you have to remove all unwanted plugins from the blog. Remove unwanted code from htaccess and set 766 permissions to all the files and folders. Reset all the passwords.

    However if you still want to move your wordpress to new directory or domain then refer these articles:

    https://codex.www.ads-software.com/Moving_WordPress#Moving_WordPress_Within_Your_Site

    https://codex.www.ads-software.com/Moving_WordPress#Moving_WordPress_to_a_New_Server

    Thanks,

    Shane G.

    Thread Starter matt1027

    (@matt1027)

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing domain by renaming the directory’ is closed to new replies.