[Plugin: WordPress MU Domain Mapping] Suggestion: better compatibility with FORCE_SSL_ADMIN
-
I’ve had some issues with domain mapping and
FORCE_SSL_ADMIN
. Here’s the situation:(“Remote Login” and “Redirect administration pages to site’s original domain” are enabled.)
I have a site mapped to
mysite.com
, and its original url ismysite.mynetwork.com
. So far so good. I’ve setFORCE_SSL_ADMIN
totrue
. The problem is that when I’m onmysite.com
and I click an administration link (from within the admin bar, or my theme), the url ishttps://mysite.com/wp-admin/...
which isn’t configured on my server (that’s why I am redirecting admin pages).So here’s my solution:
[Code moderated as per the Forum Rules. Please use the pastebin]
Basically, rather than redirecting to the original url on
admin_init
it ensures that all admin links generated by WordPress already use the correct URL. I haven’t tested it extensively yet, but it seems like it’s doing the job for me.http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/
- The topic ‘[Plugin: WordPress MU Domain Mapping] Suggestion: better compatibility with FORCE_SSL_ADMIN’ is closed to new replies.