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?
wordpress test site
Re: wordpress test site
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.
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
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.
use private mode or incognito.
Some files get cached, if you use the same browser for both sites,
It can cause problems.