Why rename domain in same DirectAdmin?
The process is faster and you can use back same DirectAdmin to manage your website files and database.
Prerequisite:
- Elementor Page Builder
- DirectAdmin
Steps to rename domain in DirectAdmin
- First, you need to backup your web file and database so if anything happen you still can recover your website to previous stage.
- Next, you need go MySQL Management > Create new Database to create new database and save credentials for later use.
- Then go back MySQL Management > phpMyAdmin and use created username and password in step 2 to login into phpMyAdmin.
- After that, you need to upload sql file you backup in step 1. Next, change site url and home url in wp_options table, change user url in wp_users table.
- Then, open back DirectAdmin dashboard, go to Domain Setup > Change a Domain Name to change your current domain to new domain.
- Last, update database information (database name, database user, database password) in wp-config.php file.
- You can access your new domain website with your browser now.
- Login into WordPress dashboard on your new domain, go to Settings > Media to change media path to new domain path.
- Go to Elementor > Tools > Replace URL tab to update site address from old url to new url.
- Then go to General tab and click Regenerate Files & Data to recreate files according to most recent settings.
- Check again all links on website to make sure it is redirect to current domain url.
- You had done transfer website to new domain in same DirectAdmin.
Note: If you did not use Elementor page builder, you might need to manually or make use of some tools to replace old url to new url so that it won’t redirect back to old site. Contact us if you need help.