Skip to content

Instantly share code, notes, and snippets.

@macbleser
Created March 9, 2014 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macbleser/9443384 to your computer and use it in GitHub Desktop.
Save macbleser/9443384 to your computer and use it in GitHub Desktop.
.htaccess redirect to specific port
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^macbleser.dev$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^ http://macbleser.dev:2368%{REQUEST_URI} [P,QSA,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment