Unable to access admin (returns 404 page)

New to localwp. Created a new site, but the site.local URL was insecure (HTTP only instead of HTTPS). I clicked on the “trust” link to install the SSL and everything went kaput.

I solved the issue by clicking “Open site shell” and then entering the following command in WP CLI to replace all http links with https in the database:

wp search-replace http https

I hope that helps someone.

1 Like