Creating a localhost version of a secure / https / SSL website - wordpress

I am trying to copy one of my websites to a localhost MAMP server for further development.
I bring you this as I am unable to access the site due to:
"This site can't provide a secure connection
localhost sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"
I have:
Copied public_html folder to MAMP.
Copied Database Collation and Data.
Created a new user and applied this to the WP-config.
Removed the .htaccess instructions.
Adjusted the options DB to have http://localhost as 'siteurl' & 'home'.
Restarted my computer and local server.
When I go to localhost:8888 it reveals the folder I created. However, when I click it will add
https:// before the URL and give me the error.
Any help you can give would be appreciate, Jason.

Related

Why wordpress redirecting me to the old website, after I migrated it to my local machine?

I migrated my wordpress website into my local machine, but it's redirecting me to the original ,-server one-, website, immediately after I opennig the local one.
I try to describe what did I do as detailed as much I can:
First I got all wp files and copied-d it to my local XAMPP htdocs directory via SHH (FROM Linux Debian 10 - Apache 2 Webserver).
After that I exported the database (exported to sql file format).
I created the same database and user (with the same permissions as the server db user) in the local webserver
Everything went successfully, but after i want to open http://localhost/ I got redirected to my old site like https://originalsite.com
What did I tried to solve the problem:
I checked Apache, PHP and phpmyadmin version, but these are the same.
I reinstalled XAMPP but that also didn't solve the problem.
I checked wp-config.php but there aren't any options I've could been change, php.ini and my.ini both of them not gave me any alternative.
Thanks!
In the .sql file you imported, find "site_url" and change it to localhost URL. Or you can define it in wp-config.php file as "WP_SITEURL"
You will need to manually go in Database and Replace LIVE site URL with the Local URL.
Something like:
https://originalsite.com/
TO
http://localhost/originalsite

How to fix "secure connection error" on wordpress migrated site on MAMP?

I received a copy of a wordpress site from an organization in the form of site files and site database. I've imported the database without a problem, and changed the wp-config file to reflect my localhost DB host, password, and DB name. When I attempt to bring up the page I get "cannot establish a secure connection". I'm running MAMP-Proon Mac High Sierra. I've been googling around and trying different things without success. I'm coming from the world of Joomla and this is my first time working to migrate a WP site. Any ideas? Thanks.
I've checked my port configurations and both 80 and 8080 are listening.
I've added "extension=curl.so" to my php.ini template file.
I keep getting "cannot establish a secure connection" and localhost URL switches to https://localhost.

ERR_TOO_MANY_REDIRECTS while accessing Wordpress on linux site on HTTPS

Scenario/Background:
We have created Wordpress on linux Web App on azure.
Created My SQL server.
Uploaded all the contents of existing application to Azure using FTP.
Restored Database using My SQL workBench by Changing storage engine to InnoDB from MyISAM.
Configured Custom Domains to this Web App and also uploaded SSL certificate and Done SNI binding.
Updated the database connection detail and below site detail in wp-config.php.
define('WP_HOME','https://www.example.com');
define('WP_SITEURL','https://www.example.com');
We have not done any changes to .htaccess file.
Problem Statement:
While accessing https://www.example.com, we are getting below error :
www.example.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
Website is working fine on http... Problem is with just https... Is there any stuff we need to change from coding or anything else we should implement before directing to https.
Please add the following code to your wp-config.php :
if (isset($_SERVER["HTTP_X_FORWARDED_PROTO"] ) && "https" == $_SERVER["HTTP_X_FORWARDED_PROTO"] ) {
$_SERVER["HTTPS"] = "on";
}
It works for me, hope works for you too.

Site won't connect on word press migration

So I am trying to migrate the local files to a server via cpanel and Filezilla. I went through and made a database and user.
I changed the information in the config.php file and uploaded to server but when I try and view in my domain name I get a ...
This site can’t be reached
testwp.com’s server DNS address could not be found.
Search Google for testwp
ERR_NAME_NOT_RESOLVED
I have been double checking the data in the config file but have no idea what could be causing this issue.
Any ideas? Thank you ahead of time.

adding website to local iis. getting Server not found error

I am adding a web application to my local iis. I added the path to the folder with the bin is inside. I specified the application pool and applied my login credentials. When I hit test settings, everything passed. When I typed mysite.local on the browser, I get the following. I also clicked on Browse Website and get the same error. This is on my personal PC.
Server not found
Firefox can't find the server at www.comicrage.local.
Check the address for typing errors such as ww.example.com instead of www.example.com
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
Have you added mysite.local to the hosts file? If not, add the following to C:\Windows\System32\Drivers\etc\hosts.
127.0.0.1 mysite.local
The hosts file is responsible for any local overrides that should take precedence over DNS.

Resources