I managed to enter the admin page finally! So I added these two lines to wp_admin.php:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
afterward deleted the .htaccess file, then deleted browsing history, cleared cache and cookies. After all of this I could enter the admin page.
Then I went to options/general and options/permalinks and saved the setting, it generated a .htaccess file and now it is working.
I also tried removing the two added lines from wp_admin.php after all, but I broke the page so they are going to stay for a while.
Related Posts:
- Globally force SSL on all pages
- Admin-Ajax.php, SSL, Non-SSL
- How disable SSL redirect for specific URL?
- How to modify the .htaccess to force ssl on login and admin pages
- Redirect http to https does not work on subdir where another instance of WordPress installed
- Transfer to HTTPS – mixed content on main page only [closed]
- I can’t access the admin panel links as I click it shows 403 error
- Https Redirect infinite loop in Mobile browsers
- Adding a SSL Certificate
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- Any idea on how to fix this error when forcing SSL on a certain page?
- How to redirect all HTTP requests to HTTPS
- Https to http redirect using htaccess
- Why is WordPress redirecting from http to https on a local environment?
- Stop WordPress and Plugins from Overwriting .htaccess
- htaccess rewrite conflict with wordpress rules and ssl
- htaccess https redirect from www to non-www
- Force HTTPS using .htaccess – stuck in redirect loop
- Upgrade to SSL Breaks Admin Dashboard
- How to redirect url requests to https? [closed]
- Redirect www to non-www htaccess
- Redirect from https to http or from http to https? [closed]
- Setup Permanent 301 Redirects after moving to Https [closed]
- https multiple redirects
- How to properly force https and www on multisite with Apache HTAccess
- Divert http to https with WordPress on IIS
- Corrupt .htaccess file
- What is the right way to redirect all traffic to HTTPS?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- How can I fix the redirect chain after implementing ssl on wordpress?
- I could not access my website wp-admin after installing SSL. And error with mixed content
- Forcing HTTPS with WordPress on AWS
- My Homepage Suddenly Disappeared and I Can’t Get It Back
- How to use https on one page only?
- Locked out of admin and some pictures don’t show after failed SSL installation
- Allow non-SSL pages to use https or Force non-SSL pages to http?
- Conflict with Force SSL and Rewrite Rules
- ReDirect subfolder link to another sub-folder and force SSL
- All content is HTTPS, but browsers warn of HTTP mixed content [closed]
- Force non-ssl on WordPress RSS feeds in htaccess, using cloudflare
- My site doesn’t redirect from HTTP to HTTPS
- fix 302 redirection error on https
- Redirect https://www.subdomain.domain.com is not redirecting to subdomain.website.com [closed]
- htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- https to https problem – 404 and can’t login
- HTTPS to HTTP rewrite rules not working as expected
- Website Migration (with https) to a new domain(http)
- Understanding Redirects
- Why does WordPress uses HTTPS for JS, CSS on EC2
- Specific Page/Post Need to Stay Non SSL
- mixed contents admin panel is Unsecured
- Implications of not completing all tasks when switching to HTTPS
- I get “too many redirects” problem when migrating localhost site
- Redirect HTTP request to HTTPS request
- Downloading zip or tar.gz inside WordPress installation?
- Moving site from HTTP to HTTPS
- How to switch static files back to using HTTP instead of HTTPS?
- Steps for WordPress over SSL
- The plain HTTP request was sent to HTTPS port in wordpress [closed]
- What are some best practices to clean up http mix content warnings?
- Is it bad to redirect http to https?
- Changing my URL in General Settings cause the site to crash
- The connection to “domain” is not secure
- How to force HTTP and stop SSL completey on WordPress website
- Browser Caching .htaccess
- SSL Error: unable to get local issuer certificate
- https connection using CURL from command line
- @ converted to %40 in HTTPPost request
- Curl command for https ( SSL )
- nodejs – error self signed certificate in certificate chain
- Custom Tumblr theme wont save because of non-https urls?
- Simple Java HTTPS server
- HTTPS connection Python
- Access-Control-Allow-Origin Multiple Origin Domains?
- Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- SSL_ERROR_BAD_CERT_DOMAIN
- Mixed Content Page: requested an insecure stylesheet error
- How do you redirect HTTPS to HTTP?
- Could not establish secure channel for SSL/TLS with authority ‘*’
- Getting “Handshake failed…unexpected packet format” when using WebClient.UploadFile() with “https” when the server has a valid SSL certificate
- ndroid 8: Cleartext HTTP traffic not permitted
- Python requests SSL error – certificate verify failed
- Why am I suddenly getting a “Blocked loading mixed active content” issue in Firefox?
- How can I force users to access my page over HTTPS instead of HTTP?
- How to force Laravel Project to use HTTPS for all routes?
- How can I fix the “No certificates found – The app Chrome has requested a certificate” Android / Google Chrome issue
- Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url
- Best collection of code for your .htaccess file [closed]
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- SSL Breaks WordPress CSS
- Default .htaccess file for WordPress?
- Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
- Disable SSL / HTTPS for wordpress
- Switching MultiSite installation from HTTP to HTTPS
- Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
- Improve wordpress security by hiding non public resources
- Switch from https back to http
- WordPress site hacked. Has .htaccess been hacked?
- Does this .htaccess security setting really work?
- Use a different domain for SSL