# Create pretty URLs
# End: Create pretty URLs

# Specific redirections
if ($args ~* ^ac=2&slt=8&slr=1&lpt=1$){ rewrite ^/$ /ac-2-slt-8-slr-1-lpt-1.html? permanent; }
if ($args ~* ^title=Saving\+Bikini\+Bottom\%3A\+The\+Sandy\+Cheeks\+Movie$){ rewrite ^/load/movie/831815$ /load/movie/831815_title-Saving-Bikini-Bottom--The-Sandy-Cheeks-Movie.html? permanent; }
if ($args ~* ^service=Putlocker$){ rewrite ^/register$ /register_service-Putlocker.html? permanent; }
rewrite ^/2012/12/watch-jack-reacher-putlocker-online-free\.html&quot;$ /2012/12/watch-jack-reacher-putlocker-online-free.html-.html? permanent;
rewrite ^/2013/04/watch-scary-movie-5-putlocker-online\.html&quot;$ /2013/04/watch-scary-movie-5-putlocker-online.html-.html? permanent;
rewrite ^/2013/06/watch-world-war-z-putlocker-online-free\.html&quot;$ /2013/06/watch-world-war-z-putlocker-online-free.html-.html? permanent;
rewrite ^/search/label/United\sArab\sEmirates$ /search/label/UnitedArabEmirates.html? permanent;
rewrite ^/search&amp;blogLocale\=en&amp;homepageUrl\=http\://www\.putlockermov\.com/&amp;targetPostID\=4148257746872013459&amp;vt\=2485420986376461779$ /-targetPostID-4148257746872013459-vt-2485420986376461779_ext_iframe.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
