RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) https://%{HTTP_HOST}:10000 [R,L]
* Some Web-Applications/Frameworks come with a pre configured .htaccess file that is trying to set the AllowOverride Rule. This will result in the following error: ''.htaccess: AllowOverride not allowed here''. Remove AllowOverride from the .htaccess file and add it to the Directory area in your web-app conf.d file that it looks somewhat like this:
Options Indexes FollowSymLinks +ExecCGI
AddHandler fcgid-script .fcg
AllowOveride FileInfo Limit Options Indexes
'''AllowOverride All'''
Order allow,deny
Allow from all
===Special Instructions===