2

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 http://10.1.15.5/mywp (my local IP)
  4. Import the database and change the wp-config file
  5. Deleted .htaccess file

Now, when I visit: http://10.1.15.5/mywp

The page load except for the styling (CSS). When I try to visit: http://10.1.15.5/mywp/wp-admin It doesn't open it redirects to:

https://10.1.5.15/mywp/yourwp/login/?redirect_to=https%3A%2F%2F10.1.5.15%2Fmywp%2Fwp-admin%2F&reauth=1

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 Jinks O'Sullivan Aug 27 '16 at 20:45
0

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 http://10.1.15.5/mywp, 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: http://10.1.15.5/mywp/replace) 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.

0

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

  • 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.