WP site on localhost redirects to www version?
Posted by: Netz (---.cpe.webspeed.dk)
Date: August 28, 2014 12:37PM

Hi,

I used backupbuddy to restore a clients OLD WP site to my localhost - So I could upgrade the theme and change the shop etc.

However...

I installed WAMPserver (Latest) it's running and I did create a user to access mysql (took me some time to figure that out.)

The smart restore script rewrites all URLs in files and DB smiling smiley

When restore was finish... i browsed to [localhost] <<< Folder for my client >>> but it redirects me to the online version www.clientssite.com???

I searched the new db (localhost) for all entries of www.clientsite.com - It's set correct to localhost/hd-new ?? But I still gets redirected to online www version ???

I deleted the .htaccess to make sure ...
I deleted the themes folder
I deleted the plugins folder
And I still gets redirected to the www GRUMPHF!!!!

Help please

I did restart the WAMP 117 times and restarted the browser?

I did activate rewrite mod
I did add some rights to the httpd.conf:
"Require all granted"
to <Files ".ht*">
and
<Directory />

ServerName localhost:80

**********************************
I am running this:
Version of Operating system: Win7 64bit
Version of Wamp Server installed: 64bit?
Version of Apache you are running: 2.4.9
Version of MySQL you are running: 5.6.17
Version of PHP you are running: 5.5.12

My colour of my WampManager icon is "Green"

My HOSTS file contains:
127.0.0.1 localhost
::1 localhost

***********************************

I hope someone has the magic solution or answer.

Best regards

Netz



Edited 1 time(s). Last edit at 08/28/2014 03:26PM by Netz.

Options: ReplyQuote
Re: WP site on localhost redirects to www version?
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: August 28, 2014 01:25PM

I am afraid this is a WordPress issue, you need to check the wordpress siet for help in moving sites from one place to another.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: WP site on localhost redirects to www version?
Posted by: Netz (---.cpe.webspeed.dk)
Date: August 28, 2014 03:28PM

Hi RiggsFolly,

Thanks - I will try WP or BackupBuddy for this.

**********************************
I am running this:
Version of Operating system: Win7 64bit
Version of Wamp Server installed: 64bit?
Version of Apache you are running: 2.4.9
Version of MySQL you are running: 5.6.17
Version of PHP you are running: 5.5.12

My colour of my WampManager icon is "Green"

My HOSTS file contains:
127.0.0.1 localhost
::1 localhost

***********************************

I hope someone has the magic solution or answer.

Best regards

Netz

Options: ReplyQuote
Re: WP site on localhost redirects to www version?
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: August 28, 2014 04:30PM

This may be of assistance [www.smashingmagazine.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.