RewriteEngine On RewriteBase / # Password-protect the site until it's released AuthType Basic AuthName "This website will be released soon. Please follow our news on fsfe.org to stay updated." AuthUserFile /usr/share/blog/public/.htpasswd Require valid-user # Redirect 404 errors to nice page ErrorDocument 404 /404.html # Nicer URL for share buttons RewriteRule ^share/?$ /cgi/share.php [NC,L] # Nicer URL for signing RewriteRule ^sign/?$ /cgi/sign.php [NC,L]