# Redirect non-www to www

# Create pretty URLs
# End: Create pretty URLs

# Specific redirections
if ($args ~* ^ID=gerion$){ rewrite ^/chs-bin/msboard\.cgi$ /chs-bin/msboard_ID-gerion.html? permanent; }
if ($args ~* ^ID=gerion&DOC=1$){ rewrite ^/chs-bin/msboard\.cgi$ /chs-bin/msboard_ID-gerion-DOC-1.html? permanent; }
if ($args ~* ^ID=gerionsanlucar$){ rewrite ^/chs-bin/msboard\.cgi$ /chs-bin/msboard_ID-gerionsanlucar.html? permanent; }
rewrite ^/SalvemosArizon/Campa%F1a_Salvemos_Arizon_Comentarios\.htm$ /SalvemosArizon/Campa-F1a_Salvemos_Arizon_Comentarios.html? permanent;
rewrite ^/SalvemosArizon/Campa%F1a_Salvemos_Arizon_RED\.htm$ /SalvemosArizon/Campa-F1a_Salvemos_Arizon_RED.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
