I already have an existing website on live server. I want to setup on local machine.

Following Steps has been taken:

  1. Download whole website
  2. Place whole code under htdocs/mywp
  3. Change the database file. replace all link from https://www.example.com to (my local IP)
  4. Import the database and change the wp-config file
  5. Deleted .htaccess file

Now, when I visit:

The page load except for the styling (CSS). When I try to visit: It doesn't open it redirects to:

Can anybody tell me what steps can be taken?

  • Looks like you have file/folder permission issue. Please check that. Anyways what does the console says – Maruti Mohanty Aug 24 '16 at 10:00
  • @AnkitaKashyap Has this question been resolved? Did my answer help? – Ethan O'Sullivan Aug 27 '16 at 20:45

Sounds like you are still having content pointing back to your live URL, possibly. To ensure that you have changed all the URLs from https://www.example.com to, follow these steps:

  1. Go and download Interconnect IT's Database Search & Replace Script here
  2. Unzip the file and drop the folder in your localhost where your WordPress is installed (the root) and rename the folder to replace (screenshot)
  3. Navigate to the new folder you created in your browser (ex: and you will see the search/replace tool
  4. It should be pretty self-explanatory up to this point: enter your old URL in the search for… field and the new URL in the replace with… field

You can click the dry run button under actions to see what it will be replacing before you execute the script. Once you're done be sure to remove the /replace/ folder.

| improve this answer | |

Use this plug in https://wordpress.org/plugins/wp-migrate-db/ for database migration and URL replacement and check all files are properly uploaded to new site

| improve this answer | |
  • We can't use any plugin on live site.. if i am on local cant able to lgin how do i install – Ankita Kashyap Aug 24 '16 at 8:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.