So I Download the DevKinsta, and I clone to my local the site that I have in a staging environment.
I have everything configured, and I when I go to the hosts file and I have:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
When that option is enabled, your site address shouldn’t be only https://yourlocalsite.local but it should have a port number too.
What does the URL look like in the single site view in DevKinsta?
I did, but it does not put the port in the end. I stoped and restarted the site and it still does not work. And the port still not appears in the site host
Can you please try to un-check the “Auto-detect open ports” in that DevKinsta’s Port selector section, and then put the HTTP field with 80 and the HTTPS field with 443 and click Confirm?
Then see if you can access your local site URL on your browser (without any port)?
If it’s still not working, can you please try to ping that local site URL in question and please provide us with the screenshot of the ping results (depends on your operating system, on Windows you can do it via command prompt, on Linux/Mac you can do it on terminal program) with something like: ping yourlocalsiteurl.local
Hello Agus,
Sorry for the late response, I am in Europe
So I can ping the site correctly… could this be Chrome that is blocking this? Because I check and I don’t have the firewall active. I have a mac by the way.
And I was looking at the URL and it puts it like this: https://https//mysite.local/
Could it be this extra https that is making the problem? I can’t remove it. It puts it back again if I write: http://mysite.local/
yes, that is definitely the issue. It looks like for some reason part of the URLs in your site have been updated with the wrong structure.
You should be able to fix that by running a search and replace by using WP CLI. Are you familiar with the process? If so, you can open Docker, move to the Container tab, click on the container called [
devkinsta_fpm and from there select the tab terminal.
From that session, you will be able to move to your site folder by using the command cd public/novoda (be sure to update the name of the site if it doesn’t match with yours) and use WP CLI to run the search and replace. I would probably look for:
http// and replace it with nothing http\/\/ and replace it with nothing http\\/\\/ and replace it with nothing
I’d also recommend running all the commands with the --dry-run parameter first and be sure to double-check the results.
Is the site a multisite?
Can you please check if inside the wp-config.php file you have a domain specified and if that has been changed as novoda.local?