Forum Moderators: phranque
# Redirect requests for non-blank non-canonical non-www hostname to same
# URL-path on canonical host, preserving requested http/https protocol
RewriteCond %{HTTP_HOST} !^(www\.traildesigns\.com)?$
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(.*)$ http%2://www\.traildesigns\.com/$1 [R=301,L]
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_URI} !^/george [NC]
RewriteCond %{REQUEST_URI} !^/lindsly [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Internally rewrite requested URL-paths of the form 'x' to the filepath '/index.php?q=x', except for certain
# subdirectories and for the most-frequently-requested filetypes which Drupal does not itself generate.
#
RewriteCond $1 !^george|lindsly|\.(php|gif|jpe?g|png|ico|css)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [QSA,L]