# Redirect non-www to www

# Create pretty URLs
# End: Create pretty URLs

# Specific redirections
if ($args ~* ^PR=BRT71$){ rewrite ^/website-builder$ /website-builder_PR-BRT71.html? permanent; }
if ($args ~* ^PR=BRT72$){ rewrite ^/online-booking$ /online-booking_PR-BRT72.html? permanent; }
if ($args ~* ^PR=BRT62$){ rewrite ^/domain-names$ /domain-names_PR-BRT62.html? permanent; }
if ($args ~* ^PR=BRT62$){ rewrite ^/online-compliance$ /online-compliance_PR-BRT62.html? permanent; }

# Redirect all extensions to html
if ($is_args = ''){
	rewrite ^([^.]*)\.shtml$ $1.html permanent;
	rewrite ^([^.]*)\.phtml$ $1.html permanent;
	rewrite ^([^.]*)\.jhtml$ $1.html permanent;
	rewrite ^([^.]*)\.htm$ $1.html permanent;
	rewrite ^([^.]*)\.php$ $1.html permanent;
	rewrite ^([^.]*)\.aspx$ $1.html permanent;
	rewrite ^([^.]*)\.asp$ $1.html permanent;
	rewrite ^([^.]*)\.jsp$ $1.html permanent;
	rewrite ^([^.]*)\.apk$ $1.html permanent;
}
# End: Redirect all extensions to html
