How to change wordpress site domain? - wordpress

I created a site 5 days ago and it still has a temporary domain with the format "box###.temp.domains/~domainname".
I own a real domain and it is already registered on Bluehost.
When I change the temporary domain on WordPress settings to the new one, the site doesn't load.
I've already tried:
Changing the site name on PHP admin.
Editing config.php file.
Any clues on how to go about this?
Thanks

Some config data in your particular case may be stored also in post meta table or theme config options in config table. Those are specific to theme / plugins setup and usually are not touched with native wordpress change domain feature. I suggest to make migration with plugin like: Wp Migrate DB.
Export your dev database with the plugin using replace strings 'old-domain/folder' to 'new-domain'.
Then import sql file to production database with sql client of your choice.

Related

Wordpress - Prevent redirection to main URL

I tried to copy the files of a WordPress website on another domain of mine.
But it keeps redirecting to the old domain name.. I'm not a WordPress expert and it's also not my website - that's why I don't have a GUI and only the files.
How and where can I disable the redirection to the main domain in the files? I can't seem to find it.
Thanks for the efforts.
For example:
WordPress website "test.com" copy paste --> "testtest.com"
"testtest.com" redirects to --> "test.com" when entered in URL
When you transfer a Wordpress install to a new domain, there are 2 values you need to update in your database. One is the homeurl and the other is the siteurl. Typically these changes would be made directly in the database, either by modifying the sql file before importing it on the new server or by accessing the database using PHPMyAdmin or some other form of database management software. However, in the event that you don't have access to the database or do not want to make the change in the database, you can also override the settings in your wp-config.php file using the following options:
define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');

Migration issue in WordPress

When Migrate website development server to live server, Widget missed theme options missed and some configuration missed. We followed below steps,
Take backup of development server both files and database.
Moved files to live server and import database to live database.
updated configuration details in wp-config.php
Anyone had this issue?
You have done everything fine
but when we using options passed theme it is necessary to make changes again when you will move to live server.
Drag you widget again into the same format as it is on the local site. Select themes options again as you selected in the local server these are theme settings issue which is not stored in your database.
So you need to make changes again on your live server.One more thing make sure you theme URL should be changed into wp_options table
For URL change export your database open it into notpade++ editor and then find and replace your all URL from local to live site URL.
Then reimport it into your live site database with the help that you will no need to change URL from a wp_options table and also it will pick up the URL for your images and pages too.
Into the last step reset your permalinks first plains and then post name.
Thanks

wordpress database not showing in PhpMyAdmin

I am new to wordpress and have bought udesign theme from themeforest. from my Plesk I have installed WP and then from the dashboard of WP tried to upload the theme, but failed. hence went directly to dedicated server and hosted on the root folder.
Theme started reflecting on the dashboard and I have started customization. Once site completes I need to move the site to production server. When I check PhpMyAdmin from the plesk, it shows there is no DB table. how do I copy/move the site without DB?
Can i manage site without PhpMyAdmin? like copying the entire assets to new server and it starts working automatically?
Please help me to find DB or Let me know how to work with the themes to make sure everything in right place.
Many Thanks,
Gururaj
If you’ve ever had the need to find the name of your WordPress database, then there’s an easy way to do that – simply look for it in your wp-config.php file located in the root folder of your WordPress install.
Accessing Your WP-Config.php File
If you are doing something where you need the name of your database, then I’m assuming you have access to your server.
Simply go to the main folder of your WordPress install and locate the file called wp-config.php.
Edit file and find name in:
define('db_name','your database here');

How to upload wordpress theme to sub domain

In my localhost(xampp) wordpress themes are installed. I activate one of them And create user name and password for the wp-admin.
And I backup database and wordpress site and upload it to subdomain(live site). After upload all content will load without CSS style-sheet. And wp-admin also not working. And url as same baseurl twice.
Question is How to upload my wordpress site to my subdomian. Clear me out. Am i missing some thing??
This is pretty much what you are looking for: Moving WordPress
It´s a quite detailed manual how to move WordPress Sites/Blogs from one server to another and moving from localhost to a live server is not much different.
If you are trying to move a complete Wordpress site from one server to another I would recommend using the plugin Duplictor.
https://wordpress.org/plugins/duplicator/
Really easy to use and does the job excellent!
I do blogging a bit. I found this video tutorial, I have used this one to successfully set up a new subdomain and install Wordpress sometimes ago.
STEPS::
Use cpanel to create the subdomain
Download the latest version of wordpress to your local drive
Upload to subdomain folder on your host
Extract the files, and move them into the subdomain folder
Use cpanel DB Wizard to create a new data base
Make a note of the username, db name and db password
Copy wp-config-sample.php to wp-config.php in the subdomain folder
Edit wp-config.php to add the username, db name and db password
Open the URL "your-subdomain.your-domain.com/wp-admin/install.php"
Fill out the fields on the form and press "install wordpress"
After creating the a subdomain, use WP clone to create and install a backup of my live site into the new subdomain. The clone site allows you to verify updates before deploying them to your public site.
Hopefully the issue has resolved already, but maybe this will be of use to others.
Thanks.
If you are trying to move a complete Wordpress site and is without plugin,
copy all the wordpress files in the htdocs/project-name to the
subdomain folder.
Then export the db from phpmyadmin,open it in an editor
Change all the url of the format 'http://localhost/your-project-name'
to the subdomain link(http://eg.example.com).
Save it and import the sql file to the subdomain's db
Change the database,username,password in wp-config of the subdomain
with subdomain's db details.
http://codex.wordpress.org/Installing_WordPress#In_a_Subdirectory
Wordpress codex gives you the steps for doing this.

How to install WordPress in subdomain?

At the moment I have a WordPress installation in a subfolder of my current site (example.com/wordpress). How do I make it so that wordpress is accessible from a subdomain?
I.e. I would like wordpress to be accessible from this address: wordpress.example.com, and that all the links, posts and pages will still work flawlessly, e.g. wordpress.example.com/my-wp-post/
If it makes a difference which host one is with, I am asking specifically about 1&1.
Thank you
I am not a big fan of video tutorials, but I used this one to successfully set up a new subdomain and install wordpress.
Here is an overview of the process
Use cpanel to create the subdomain
Download the latest version of wordpress to your local drive
Upload to subdomain folder on your host
Extract the files, and move them into the subdomain folder
Use cpanel SQL Wizard to create a new data base
Make a note of the username, db name and db password
Copy wp-config-sample.php to wp-config.php in the subdomain folder
Edit wp-config.php to add the username, db name and db password
Open the URL "your-subdomain.your-domain.com/wp-admin/install.php"
Fill out the fields on the form and press "install wordpress"
After creating the a subdomain I use WP clone to create and install a backup of my live site into the new subdomain. The clone site allows me to verify updates before deploying them my public site.
Hopefully the OP has resolved this issue, but maybe this will be of use to others.
I think you have 2 options.
1) Manually:
Copy your wordpress install from the subfolder of your main domain to the subdomain's folder. Using a database editing tool (of your choice) go into the wp_options table and change the option_value of the option_name 'siteurl' and 'home'.
You might have a few other options that will need editing, but they are more often than not plugin specific.
2) A little better:
Create a new wordpress install in your subdomain. Copy your plugins, themes and uploads into it. Then, install the plugin wp-migrate-db-pro from https://deliciousbrains.com/wp-migrate-db-pro/ Use this plugin to copy the database from the subfolder install to the subdomain install. This plugin will globally search and replace the URLs and Folders for you.
I've been using this plugin for a while...and it saves me hours and hours of work.
Purchase your unique URL or subdomain or wherever you want the wordpress to live from your host provider.
wordpress.example.com
coolurl.cooltimes.com
upload Wordpress to that root. /
Or define a custom folder for it;
wordpress.example.com/partywp/
NOTE: If your looking for the free (no hosting required - though less custom website friendly) wordpress with similar URL, please use wordpress.com version and you don't need to do anything.
http://wordpress.com/ is different from http://wordpress.org/
Wordpress.com is like google blogger and you simply create an account and they give you a URL - and free blogging area with small templates. You can transfer your free wordpress.com to custom wordpress.org -- if you would like to use wordpress hosting naming convention, consult wordpress.
Added:
If you are changing the location from your original install; to a different path or location. You should then uninstall the Wordpress that is elsewhere or previous, and reinstall at where you want it to currently live to avoid any wholes or errors, etc.
So, if now it must be at: wordpress.example.com -- work with your host provider (hopefully not godaddy) locate the root to this domain, and reinstall with a fresh latest version and you should be OK. If you have further DNS issues, please try to describe your question more clearly.

Resources