Page 1 of 1

wordpress test site

Posted: Sat Apr 27, 2019 4:04 pm
by mister_v
Hi,

I have a site where I use wordpress,
and it works fine.

But now I want to create the same site on my local PC,
to try some things.

I setup apache, copied all the files and database.
That it is ok, and the first page is presented when I go to http://localhost
But when I tried to login on the site, I get send to the real site (eg: mydomain.com).
The domain is added to all the links.

So how do I change this setting?
so I can work only on the localhost?

Re: wordpress test site

Posted: Sat Apr 27, 2019 6:30 pm
by chris
I think the easiest way is to use you domain name
and add it to the hosts-file of your local PC
and point it to localhost.

But you wont be able to access the actual site,
until your from the line form you hosts-file.


There are other option,
using a sub-domain,
or a temporary URL
but I haven't worked with those.

Re: wordpress test site

Posted: Sun May 19, 2019 2:06 pm
by chris
A little tip if you adapt the the hosts-file of your PC;
use private mode or incognito.

Some files get cached, if you use the same browser for both sites,
It can cause problems.