[wp-hackers] Password protected page with SSL network and domain mapping

Tom Barrett tcbarrett at gmail.com
Wed Oct 2 14:20:16 UTC 2013


It would certainly be interesting to see an alternative.

I think the basic issue is that the domain mapping plugin filters
the_content with str_replace() to update all URLs. Irrespective of them
being admin (wp-admin/wp-login/admin-ajax) or not. I've not had the chance
to evaluate the cost of replacing it with something like preg_replace() (or
whether that will suffice).

Potentially a lot of variables/permutations to consider....


On 2 October 2013 12:54, Marko Heijnen <mailing at markoheijnen.nl> wrote:

> At the moment I'm rewriting the domain mapping plugin and this is one of
> the things I play with.
> I got the same situation but it quite a mess. Since the site url is
> without SSL and when you go there it should map to the admin/network url
> with https.
>
> Marko
>
>
> Op 2 okt. 2013, om 12:16 heeft Tom Barrett <tcbarrett at gmail.com> het
> volgende geschreven:
>
> > I have a network with SSL login/admin. Password protected pages use
> > wp-login.php?action=postpass.
> >
> > I can't get this to work at all on sites with mapped domains. At worst it
> > tries load https://customdomain.com/wp-login.php (which fails due to
> lack
> > of SSL on mapped domain). At best it loads the login page.
> >
> > Anyone have any experience with this? Can point me in the right direction
> > for filters to nginx rewrite rules that I need to apply?
> >
> > Thanks
> >
> > --
> > http://www.tcbarrett.com | http://gplus.to/tcbarrett |
> > http://twitter.com/tcbarrett
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
http://www.tcbarrett.com | http://gplus.to/tcbarrett |
http://twitter.com/tcbarrett


More information about the wp-hackers mailing list