# Redirect non-www to www

# Create pretty URLs
# End: Create pretty URLs

# Specific redirections
rewrite ^/1/category/ask\sa\ssasquatch/1\.html$ /1/category/askasasquatch/1.html? permanent;
rewrite ^/1/category/brought\sto\syou\sby/1\.html$ /1/category/broughttoyouby/1.html? permanent;
rewrite ^/1/category/current\sevents/1\.html$ /1/category/currentevents/1.html? permanent;
rewrite ^/1/category/did\syou\sknow0362041f5e/1\.html$ /1/category/didyouknow0362041f5e/1.html? permanent;
rewrite ^/1/category/Guest\sColumnists/1\.html$ /1/category/GuestColumnists/1.html? permanent;
rewrite ^/1/category/mash\sup\stv\sads/1\.html$ /1/category/mashuptvads/1.html? permanent;
rewrite ^/1/category/staff\swriters/1\.html$ /1/category/staffwriters/1.html? permanent;
rewrite ^/1/category/talk\swith\sa\szombie/1\.html$ /1/category/talkwithazombie/1.html? permanent;
rewrite ^/1/category/the\solinoy\sreporter/1\.html$ /1/category/theolinoyreporter/1.html? permanent;
rewrite ^/1/category/this\sjust\sin0b576d1a8a/1\.html$ /1/category/thisjustin0b576d1a8a/1.html? permanent;
rewrite ^/1/category/tims\sdad\sstoriesb23ab094fe/1\.html$ /1/category/timsdadstoriesb23ab094fe/1.html? permanent;
rewrite ^/1/category/weekly\squote/1\.html$ /1/category/weeklyquote/1.html? permanent;
rewrite ^/1/category/weird\sthoughts/1\.html$ /1/category/weirdthoughts/1.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
