# Redirect non-www to www

# Create pretty URLs
# End: Create pretty URLs

# Specific redirections
if($is_args = ''){ rewrite ^/index\.htm$ /index_htm.html? permanent; }
if ($args ~* ^D=D$){ rewrite ^/97v3/chignell/_vti_cnf$ /97v3/chignell/_vti_cnf/D-D.html? permanent; }
if ($args ~* ^M=A$){ rewrite ^/97v3/chignell/_vti_cnf$ /97v3/chignell/_vti_cnf/M-A.html? permanent; }
if ($args ~* ^N=A$){ rewrite ^/97v3/chignell/_vti_cnf$ /97v3/chignell/_vti_cnf/N-A.html? permanent; }
if ($args ~* ^N=D$){ rewrite ^/97v3/chignell/_vti_cnf$ /97v3/chignell/_vti_cnf/N-D.html? permanent; }
if ($args ~* ^S=A$){ rewrite ^/97v3/chignell/_vti_cnf$ /97v3/chignell/_vti_cnf/S-A.html? permanent; }
if ($args ~* ^D=A$){ rewrite ^/97v3/chignell$ /97v3/chignell/D-A.html? permanent; }
if ($args ~* ^D=D$){ rewrite ^/97v3/chignell$ /97v3/chignell/D-D.html? permanent; }
if ($args ~* ^N=A$){ rewrite ^/97v3/chignell$ /97v3/chignell/N-A.html? permanent; }
if ($args ~* ^N=D$){ rewrite ^/97v3/chignell$ /97v3/chignell/N-D.html? permanent; }
if ($args ~* ^S=D$){ rewrite ^/97v3/chignell$ /97v3/chignell/S-D.html? permanent; }
if ($args ~* ^D=A$){ rewrite ^/97v3$ /97v3/D-A.html? permanent; }
if ($args ~* ^M=A$){ rewrite ^/97v3$ /97v3/M-A.html? permanent; }
if ($args ~* ^N=D$){ rewrite ^/97v3$ /97v3/N-D.html? permanent; }
if ($args ~* ^S=A$){ rewrite ^/97v3$ /97v3/S-A.html? permanent; }
if ($args ~* ^tag=heelisp&p=http\%3A\%2F\%2Fwww\.netsci-journal\.com&j=y&srw=$){ rewrite ^/$ /-j-y-srw.html? permanent; }
if ($args ~* ^tag=heelisp&p=http$){ rewrite ^/$ /tag-heelisp-p-http.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
