RewriteEngine on
#RewriteBase /
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond $1 !^(index\.php|static|favicon\.ico|robots\.txt)
RewriteRule ^(.*)$ https://paste-googlee.rhcloud.com/index.php?/$1
RwriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
#ErrorDocument 404 /index.php
</IfModule>