########## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
RewriteEngine On
RewriteCond %{HTTPS} !=off
RewriteRule ^(mainmenu-item-one.*|mainmenu-item-two.*|mainmenu-item-three.*)$ http://www.mysite.com/$1 [NC,R=301,L]
^domain.*
RewriteCond %{HTTPS} !=on
RewriteRule ^(mainmenu-item-four.*|contact-us)$ https://www.mysite.com/$1 [NC,R=301,L]
# Redirect non-canonical hostname requests to canonical domain
RewriteCond %{HTTP_HOST} !=www.mysite.com
RewriteCond %{HTTPS}>s ^(on>(s)|[^>]+>s)$
RewriteRule ^(.*)$ http%2://www.mysite.com/$1 [R=301,L]
RewriteCond %{HTTPS} !=off
RewriteRule ^(mainmenu-item-one.*|mainmenu-item-two.*|mainmenu-item-three.*)$ http://www.mysite.com/$1 [NC,R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^(mainmenu-item-four.*|contact-us)$ https://www.mysite.com/$1 [NC,R=301,L]
# Redirect non-canonical hostname requests to canonical domain
RewriteCond %{HTTP_HOST} !=www.mysite.com
RewriteCond %{HTTPS}>s ^(on>(s)|[^>]+>s)$
RewriteRule ^(.*)$ http%2://www.mysite.com/$1 [R=301,L]
########## Begin - Custom redirects
RewriteCond %{HTTPS} !=off
RewriteRule ^(mainmenu-item-fifteen.*|mainmenu-item-sixteen.*|mainmenu-item-seventeen.*|mainmenu-item-eighteen.*|mainmenu-item-nineteen.*)$ http://www.tribaltraditions.org/$1 [NC,R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^(Hidden-item-twentynine.*)$ https://www.tribaltraditions.org/$1 [NC,R=301,L]
# Redirect non-canonical hostname requests to canonical domain
RewriteCond %{HTTP_HOST} !=www.tribaltraditions.org
RewriteCond %{HTTPS}>s ^(on>(s)|[^>]+>s)$
RewriteRule ^(.*)$ http%2://www.tribaltraditions.org/$1 [R=301,L]
Time to create page: 0.063 seconds