# Use PHP5.4 as default
AddHandler application/x-httpd-php54 .php
RewriteEngine on

RewriteCond %{HTTP_HOST} ^pillaroflaw\.us$ [OR]
RewriteCond %{HTTP_HOST} ^www\.pillaroflaw\.us$
RewriteRule ^/?$ "https\:\/\/pillaroflaw\.org\/" [R=301,L]


# Route DNS to proper folders
# For security reasons, Option followsymlinks cannot be overridden.
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks
Options +SymLinksIfOwnerMatch
# Options +SymLinksIfOwnerMatch
# RewriteBase /
# RewriteCond %{HTTP_HOST} disciplineoflove.com
# RewriteCond %{REQUEST_URI} !dolcom/
# RewriteRule ^(.*)$  dolcom/$1 [L]
# RewriteCond %{HTTP_HOST} joelotto.com
# RewriteCond %{REQUEST_URI} !jottodcom/
# RewriteRule ^(.*)$  jottodcom/$1 [L]
# RewriteCond %{HTTP_HOST} ottoforsenate.com
# RewriteCond %{REQUEST_URI} !jotto4sen8or/
# RewriteRule ^(.*)$  jotto4sen8or/$1 [L]

# BEGIN s2Member GZIP exclusions
<IfModule rewrite_module>
	RewriteEngine On
	RewriteBase /
	RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
	RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
	RewriteRule .* - [E=no-gzip:1]
</IfModule>
# END s2Member GZIP exclusions

# BEGIN WordPress
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
# END WordPress
