Skip to content

Instantly share code, notes, and snippets.

@eleddy
Last active July 1, 2016 12:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eleddy/46717fae3a4a853008c7 to your computer and use it in GitHub Desktop.
Save eleddy/46717fae3a4a853008c7 to your computer and use it in GitHub Desktop.
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*) https://%1$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^mysubdomain\.mysite\.com
RewriteRule ^/(.*)$ http://127.0.0.1:9090/VirtualHostBase/https/%{SERVER_NAME}:%{SERVER_PORT}/subdomain/VirtualHostRoot/$1 [L,P]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment