- 
      
- 
        Save betweenbrain/1731407 to your computer and use it in GitHub Desktop. 
    .htaccess
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | AddDefaultCharSet utf-8 | |
| DefaultLanguage en-US | |
| # Activate rewrite engine | |
| Options +FollowSymLinks | |
| RewriteEngine on | |
| # Redirect to wwww | |
| RewriteCond %{HTTP_HOST} ^example.com [NC] | |
| RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] | |
| # Redirect to non-wwww | |
| #RewriteCond %{HTTP_HOST} ^www\.example\.tld$ [NC] | |
| #RewriteRule ^(.*)$ http://example.tld/$1 [R=301,L] | |
| # MediaTemple PHP5 | |
| AddHandler php5-script .php | |
| # Add mime-types | |
| #AddType video/ogg .ogv | |
| #AddType video/mp4 .mp4 | |
| #AddType video/webm .webm | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment