[wp-hackers] SSL for a single page

Bret McMillan bretm at redhat.com
Thu Oct 16 14:58:35 GMT 2008


Rich Pedley wrote:
>> On Wed, Oct 15, 2008 at 3:47 AM, Rich Pedley  wrote:
>>
>>> I know there are a few plugins available for admin access via SSL, but
>>> what about the front end? Would it be possible to allow SSL for a
>>> page, or pages, via a plugin, or will the framework not allow it?
> 
> 2008/10/15 Viper007Bond <viper at viper007bond.com> wrote:
>> Won't entering "https://site.com" into Settings -> General work?
> 
> Forgive me if I've got this wrong, but doesn't that affect the whole
> site? wouldn't everyone then get redirected to https ?

I don't think so.  If you add a define(FORCE_SSL_ADMIN, true) or 
whatever, I think only the admin areas are forcibly protected.  I've 
been working w/ wpmu, though, you ymmv.

> Allowing people to access the same site from 2 different urls is
> basically what I'm after - ie
> http://elfden.co.uk/  & https://server.shared.co.uk/~elfden/ (or even
> the straight https://elfden.co.uk/). Which I was fairly certain wasn't
> possible under a standard Wordpress set up.

What difference in behavior do you expect?  Would you allow admin logins 
via http://elfden.co.uk/wp-admin/ ?

>> And no plugins are needed for admin SSL enforcement. It's been native since
>> 2.6.
> 
> sorry yes I'd forgotten this - though there isn't an option to set the
> url for this in the settings, so how does this work for those with
> shared SSL? Would I be able to utilise one of the functions that does
> this to help me solve the problem?

It's actually set as a part of wp-config.php iirc.  Not quite sure what 
you mean re: shared ssl.

--Bret


More information about the wp-hackers mailing list