try ServerPress, Local by Flywheel, DevKinsta
Hi @lcf,
Thank you very much!
If I’m doing a site for someone else, should I just create a new account for them and give them the credentials after I have finished?
Or, do I use one of these anyway?
Cheers,
Thomas
@lcf a new WordPress account.
I would create new WordPress user accounts for clients to access their websites
I configure my webserver to use the “virtual host” method, and use the hosts file mechanism to map domain names to my localhost server.
More details here:
https://httpd.apache.org/docs/current/vhosts/
https://en.wikipedia.org/wiki/Hosts_%28file%29
I develop the website locally using the final domain name, I can switch between local and hosted by commenting out the lines in the hosts file.
Some people use a browser plugin to manage the hosts file.
@rossmitchell, that’s exactly what I am looking for (as a newbie) but I have a couple of questions to ask:
1. Assuming that the final domain name is mysite.com, do you mean the following settings in the hosts file?
#When working locally
127.0.0.1 mysite.com
#When working on live site
#127.0.0.1 mysite.com
2. I assume that the live site is in https, so how do you manage the SSL certificate on localhost?
1) These settings are correct.
2) YOu create a “self signed” certificate for the domain, then you grant your browser a security exception on this certificate.
You also need to have your webserver configured to use the virtual host method.