Just today I synchronized a development website database with a production website database.
Now, my development website gives a “404 Not Found” error. The URL starts with HTTPS, and there is a red slash through the HTTPS text. The 404 page says “The server can not find the requested page: dev.greenbee-web.com/ilaimh/wp-admin/ (port 443). Apache Server at dev.greenbee-web.com Port 443”.
I did not realize that the production website uses HTTPS ( I am an employee and so I’m not the only one working on this website). This made the development website now use HTTPS, but I want it to use HTTP. I can’t figure out where, in any of WordPress’s configuration files, I can make the development website go back to using HTTP.
Is there some setting in wp-config that is forcing my development site to use HTTPS? If not in wp-config, where is the setting that is forcing the site to use HTTPS?
Thank you
4 s
There are 2 things you must do.
If you are using Apache server go to .htaccess and change the Rewrite and RewriteBase engine to
RewriteEngine On
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
If you are using Nginx something like this should work
server {
listen 80 443;
server_name example.com;
# add ssl settings
return 301 https://example.com$request_uri;
}
This would redirect the https to http
and go to the database through phpmyadmin or whatever you use
go to wp_options and find and change the siteurl and home values from https://example.com to http://example.com
Clean your cache and try again. It should work without problem.
If the site still asks for SSL check your wp-config.php file to see if it has this code
define('FORCE_SSL_ADMIN', true);
then change the ‘true’ to ‘false’
Hope this helps you.