Using WordPress with SSL
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Hey there. Great idea. I found you thru the Juergen page that you linked to. I don't need anything as robust as his.
I'm testing now and have the following setup:
http://www.example.com/blog/
and
https://secure.example.com/~user/blog/
I use mod rewrite for the filenames so you get the dates in the URLs (e.g. /blog/2006/09/26/entry-slug/)
I updated config.php with the following:
wp_cache_set("siteurl_secure", "https://secure.example.com/~user/blog/", "options");
wp_cache_set("home", $_SERVER["HTTPS"]?"https://secure.example.com/~user/blog/":"http://www.example.com/blog/", "options");
wp_cache_set("siteurl", get_settings("home"), "options");
The home page of the blog loads fine, in the secure domain, but when I try to browse to other pages it returns a 404 saying it can't find "/blog/index.php". This is odd since it's the page that was just serverd....
Any ideas? (I'm going to end up setting up so the https and http have the same directory structure which should eliminate this, but figured you might want to know about this.)
I'm testing now and have the following setup:
http://www.example.com/blog/
and
https://secure.example.com/~user/blog/
I use mod rewrite for the filenames so you get the dates in the URLs (e.g. /blog/2006/09/26/entry-slug/)
I updated config.php with the following:
wp_cache_set("siteurl_secure", "https://secure.example.com/~user/blog/", "options");
wp_cache_set("home", $_SERVER["HTTPS"]?"https://secure.example.com/~user/blog/":"http://www.example.com/blog/", "options");
wp_cache_set("siteurl", get_settings("home"), "options");
The home page of the blog loads fine, in the secure domain, but when I try to browse to other pages it returns a 404 saying it can't find "/blog/index.php". This is odd since it's the page that was just serverd....
Any ideas? (I'm going to end up setting up so the https and http have the same directory structure which should eliminate this, but figured you might want to know about this.)
I've setup so the only thing that is differnt is the domain and none of the file paths and everything works like a champ. Great hack.
One thing I did a little different was with the login. I setup so the login page automatically redirects itself to the https version if it wasn't called instead os ufing the base href tag.
All I did for this was drop this
if( !$_SERVER['HTTPS']) {
header("Location: " . get_settings('siteurl_secure') . "wp-login.php");
}
under the:
One thing I did a little different was with the login. I setup so the login page automatically redirects itself to the https version if it wasn't called instead os ufing the base href tag.
All I did for this was drop this
if( !$_SERVER['HTTPS']) {
header("Location: " . get_settings('siteurl_secure') . "wp-login.php");
}
under the:
I think there is a little issue: Wordpress Address and Weblog Address in Options both appear with the HTTPS url.
But anyway, this hack works perfectly!
But anyway, this hack works perfectly!
There's another soultion, the secure-admin plugin. However the was a bug in the code which I went about fixing:
http://haris.tv/2007/01/11/wordpress-ssl-plugin-secure-admin-patched-and-working
Haris
http://haris.tv/2007/01/11/wordpress-ssl-plugin-secure-admin-patched-and-working
Haris
