[UPHPU] switch to secure with relative URL?

Christer Edwards christer.edwards at gmail.com
Mon Apr 5 14:20:09 MDT 2010


On Mon, Apr 5, 2010 at 1:54 PM, Wade Preston Shearer
<wadeshearer.lists at me.com> wrote:
> I'm sure the answer is no, but I thought I'd still ask. Is there any way to switch to https via a relative URL? The problem is that relative URLs don't contain the protocol.

Have you tried a 301 redirect?

(can't think of the syntax off the top of my head, but something along
the lines of:)

RewriteEngine On
RewriteCond %{HTTP_URL}   ^/foobar [NC]
RewriteRule ^/(.*)         https://domain.tld/$1 [L,R]


-- 
Christer Edwards


More information about the UPHPU mailing list