Problem with SSL and Redirects
-
Hi,
so I’ve been trying to setup my wordpress site with a SSL Certificaate. The Certificate has been bought and installed properly.
However I’m currently having issues with the redirects.At this point I have edited my .htaccess to include:
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://mydomain.com%{REQUEST_URI} [L,R=301]I also included this into the wp-config.php:
define(‘FORCE_SSL_ADMIN’, true);Further I’ve replaced all instances of
https://mydomain.com to https://mydomain.com
https://www.mydomain.com to https://mydomain.com
with the help of this tool https://interconnectit.com/products/search-and-replace-for-wordpress-databases/So in the WP Dashboard under General the site is set to https://…
Browsing through all the Guides online available this should be everything that is necessary.
Cloudflare has been paused to not interfere with anything.The problem lies within the redirects after checking with https://www.redirect-checker.org
https://mydomain.com 200 Redirects none Okay
https://mydomain.com/test/ 200 Redirects none Okay
https://mydomain.com/wp-admin/ 302 ? 200 Redirects 1 (“Why is here a 302 being used? Shouldn’t it only be 200?”)
https://mydomain.com 301 ? 200 Redirects 1 (“While this looks fine it’s giving me the message: You use 301 and 302 redirect at the same time. This might be confusing for search engine. Generally, please do not use 301 and 302 redirects at the same time.”)
https://mydomain.com/test/ 200 Redirects none Okay (“Shouldn’t be okay, since it should redirect to the https:// version”)
https://mydomain.com/wp-admin/ 301 ? 302 ? 200 Redirects 2 (“Gives me the message: You use 301 and 302 redirect at the same time. This might be confusing for search engine. Generally, please do not use 301 and 302 redirects at the same time.” and “You use a 302 redirect.”)I’ve added my commentary in brackets. It seems that somehow there is a 302 enabled somewhere where it shouldn’t be.
- The topic ‘Problem with SSL and Redirects’ is closed to new replies.