I am developing a WordPress site locally. When I'm all done, I want to FTP it to my remote hosting server. I assume that I will need to recreate the MySQL database or perform an Export/ Import and I think I can handle that (although I'm open to any tips)... My main question is can I just copy all the files over (WP + Theme + custom files) to my live server without breaking the links?, because currently most of the links start with localhost/ ...
Asked
Active
Viewed 51 times
1 Answers
-1
Step 1: Transfer all files to server
Step 2: update wp-config.php with new DB credentials
Step 3: update your DB by replacing "localhost/yourlocalfolder" by "yoursitename"
Step 4: Login to wp-admin -> go to settings->permalinks and save the permalinks option to rewrite the .htaccess file .
Thats it, Your site is live. :-)

Scarecrow
- 4,057
- 3
- 30
- 56
-
1Your "Step 3" will break URLs in the database. See http://stackoverflow.com/questions/2822531/wordpress-moving-from-one-host-to-another/2823000 – markratledge Dec 15 '15 at 00:29