Sign up to create your own snipts, or login.

Public snipts » yvoictra's snipts » Apache non-www .htaccess config

posted on Jan 16, 2010 at 9:05 a.m. EST in 
  • Options +FollowSymLinks
    
    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} !^apaair\.aero$ [NC]
    RewriteRule ^(.*)$ http://apaair.aero/$1 [R=301,L]
    
    # Important: It is needed to have mod_rewrite MODULE activated and have "AllowOverride Directive" set to ALL.
    

    copy | embed

0 Comments

Sign up, or login to leave a comment.