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
- Access-Control-Allow-Origin Multiple Origin Domains?
- How do you redirect HTTPS to HTTP?
- How can I force users to access my page over HTTPS instead of HTTP?
- htaccess problem after saving Settings
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- Error 101 after upgrading WordPress
- Remove File Extension for Page Outside of WordPress
- different child theme for subdomain
- Override htacces rule only for specific directory
- How To Allow Only Specific User Agent To Access a URL?
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- Rules in .htaccess only if the requested URL is /wp-admin
- What to write in the htaccess in order to detect browser language and point accordingly?
- .htaccess RewriteCond excluding directories does not work when there is an .htaccess or php.ini in subdirectory
- Separate 404 page for WordPress in subfolder
- Changing HTTP to HTTPS
- Mixed Content warnings google fonts
- Does WP suppresses .htaccess if permalinks are disabled?
- Hi do I change Media files that still show as http after installing ssl
- Page can’t hand request – HTTP ERROR 500 – when updating something
- WordPress permalinks confusion
- Cannot upgrade to 4.0 – get SSL certificate error
- Basic Auth .htaccess on wp-login, but allow logout from woocommerce
- Why my WordPress Site Asking for HTTP Authentication?
- Mixed Content: The page at ” was loaded over HTTPS, but requested an insecure font ”
- WordPress site not forcing from http to https instead getting redirected too many times
- How to properly give WordPress its own directory
- 404 Page not found error after adding ‘s’ in ‘http’ in Settings
- How come all my http URLs are turned to https?
- htaccess old php pages to new wordpress ones
- different CNAME to corresponding subfolders
- This webpage has a redirect loop issue with SSL page
- Duplicator live to wamp https to http
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- Moving WordPress from http to https over existing site