Editing Problems with WordPress on Local PC

Hi All,

I am trying to edit my wordpress site on my local pc, but the pages seem to re-direct to the url I have on the server.  Where can I update this so I can edit using localhost vs www.domainname.com?  All the pages seem to do this.
Jack_son_Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason C. LevineNo oneCommented:
This is (one of) the problems using localhost to edit an otherwise live site.  Either you have to change the URL settings to point to localhost, which I don't like to do as it messes up lots of little things or you have to modify your hosts file to point domain.com to your localhost.  Just remember to change it back.
0
Chris StanyonWebDevCommented:
I find the easiest thing to do is to backup your wordpress database and then do a search and replace on the backup. Once that's done, restore it on the other server. It's a 2-minute process to switch your wordpress data from local to server or vice versa.

I use a mySQL client called SQLYog - it's so much easier than PHPMyAdmin - when you create a backup (a SQL dump) you end up with a single file with a .sql extension - this is in fact a simpley text file containing a lot of SQL commands (CREATE, INSERT etc), so search and replace can be done with any standard text editor.
0
James RodgersWeb Applications DeveloperCommented:
use wp migrate db to manage db transfer files, http://wordpress.org/plugins/wp-migrate-db/,  search and replace will not update serialized data.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Jack_son_Author Commented:
I added in the host record, no luck.  Is there a way to remove the url from the db?

I also looked at this plugin, I am not trying to migrate this I already have it all downloaded, just need to get it working on my local laptop.
0
Chris StanyonWebDevCommented:
re-read my previous post!
0
Jack_son_Author Commented:
okay great, I got it; now should I use localhost to replace the url's?
0
Chris StanyonWebDevCommented:
Depends on the local address of your wordpress installation. If you just access it using localhost in your browser, then yes. If you've configured your local site to be accessed at a different URL, then that's what you replace the remote url with.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.