Skip to content

Instantly share code, notes, and snippets.

@buk
Created December 12, 2010 09:24
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 buk/737952 to your computer and use it in GitHub Desktop.
Save buk/737952 to your computer and use it in GitHub Desktop.
A .htaccess file to point a subdomain to a folder
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[www\.]*blog.domain.de [NC]
RewriteCond %{REQUEST_URI} !^/blog/.*
RewriteRule ^(.*) /blog/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment