|
How do I log into my Wordpress installation using SSL (https)
Category: WordPress
|
|
Question Asked by jcborras
How do I log into my Wordpress installation using SSL (https)
Best Answer not yet chosen
The thing is that I want to access my Wordpress administrative section using https (SSL). Obviously I must use http://securexx.inmotionhosting.com/̃myusername/wp/wp-login.php but once I type my username and password it redirects me to www..com where SSL access is not possible anymore.
Any ideas how to fix the problem? Do I need to use Apache's rewrite module capabilities?
Any ideas how to fix the problem? Do I need to use Apache's rewrite module capabilities?
- Asked 2011-10-20 16:33
- Hits: 11169
- Expires in: Expired
Best Answer Chosen by InMotion Hosting Staff
Hi jcborras,
I actually dealt with this issue not too long ago in our Forums. Please take a look at this post:
WordPress Admin Page & Shared SSL
Let me know if that does not help, I'm more than happy to assist further.
Thanks,
- Brad
I actually dealt with this issue not too long ago in our Forums. Please take a look at this post:
WordPress Admin Page & Shared SSL
Let me know if that does not help, I'm more than happy to assist further.
Thanks,
- Brad
2011-10-20 16:53
Source(s):
No other Answers Submitted
Rating:
Please log in to rate this question.
Like this Question?

Support Center Login
Have a question?
Comments
After adding the if..else construct I see that the CSS file is loaded in the login page.
The if..else lines I added are:
Code:
if( $_SERVER['HTTPS'] || substr_count($_SERVER['SCRIPT_FILENAME'],"wp-admin") > 0 || substr_count($_SERVER['SCRIPT_FILENAME'],"wp-login.php") > 0)
{
// if we need to force SSL
define('WP_HOME','https://securexx.inmotionhosting.com/~thisisme/my-wp-install');
define('WP_SITEURL','https://securexx.inmotionhosting.com/~thisisme/my-wp-install');
}
else
{
// if we don't need to force SSL
define('WP_HOME','http://mydomain.com');
define('WP_SITEURL','http://mydomain.com');
}
But after typing in my username and password I get the following url in the address bar:
Code:
https://securexx.inmotionhosting.com/~thisisme/my-wp-install/wp-login.php?redirect_to=https%3A%2F%2Fsecurexx.inmotionhosting.com%2F~thisisme5%2Fmy-wp-install%2Fwp-admin%2F&reauth=1