unhosted / website

Website of the Unhosted project
unhosted.org
67 stars 27 forks source link

make http://www.unhosted.org redirect to https://unhosted.org/ #34

Closed michielbdejong closed 11 years ago

michielbdejong commented 11 years ago

this subdomain currently still points to gh-pages should update that.

Genjo commented 11 years ago

Hi,

This is my first post on github and so my first contribution, I hope this will help you!

 <IfModule mod_rewrite.c>
        RewriteEngine on

        RewriteCond %{SERVER_PORT} !^443$
        RewriteRule ^/(.*) https://unhosted.org/$1 [L,R]

        RewriteLog /var/log/apache2/https_rewrite.log
        RewriteLogLevel 1
</IfModule>

Sorry for my poor english! Greetings

michielbdejong commented 11 years ago

thanks @Genjo ! :) actually it's hosted on nodejs, not apache, but yeah, that's roughly the sort of thing we need.

michielbdejong commented 11 years ago

i did it with JavaScript redirect in the gh-pages branch in the end, was easier: http://www.unhosted.org/