# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/

Options -Indexes
<IfModule mod_negotiation.c>
	Options -MultiViews
</IfModule>

# Add a trailing slash (/) to a URL
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.[A-Za-z0-9]*$
RewriteRule .*[^/]$ %{REQUEST_URI}/ [L,R=301]

# Specific redirections
RewriteRule ^index\.html$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/ [L,R=301]
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=charity-giveaway/c1vdb$
RewriteRule ^/?$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/_escaped_fragment_-charity-giveaway/c1vdb/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^v=2$
RewriteRule ^sites/5407ac_63044e033e22cb78d6a88469079019a0_1191\.json\.z$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/sites/5407ac_63044e033e22cb78d6a88469079019a0_1191.json_v-2/ [L,R=301,QSD]
RewriteRule ^tagged/amazing\scause$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/amazingcause/ [L,R=301,QSD]
RewriteRule ^tagged/bb\sscenes$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/bbscenes/ [L,R=301,QSD]
RewriteRule ^tagged/bb\sscript$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/bbscript/ [L,R=301,QSD]
RewriteRule ^tagged/blaine\sanderson$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/blaineanderson/ [L,R=301,QSD]
RewriteRule ^tagged/chris\scolfer$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/chriscolfer/ [L,R=301,QSD]
RewriteRule ^tagged/darren\scriss$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/darrencriss/ [L,R=301,QSD]
RewriteRule ^tagged/election\s2012$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/election2012/ [L,R=301,QSD]
RewriteRule ^tagged/klainers\srock\sthe\svote$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/klainersrockthevote/ [L,R=301,QSD]
RewriteRule ^tagged/kurt\shummel$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/kurthummel/ [L,R=301,QSD]
RewriteRule ^tagged/link\sto\sshare$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/linktoshare/ [L,R=301,QSD]
RewriteRule ^tagged/project\sangel\sfood$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/projectangelfood/ [L,R=301,QSD]
RewriteRule ^tagged/rock\sthe\svote$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/rockthevote/ [L,R=301,QSD]
RewriteRule ^tagged/signal\sboost$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/signalboost/ [L,R=301,QSD]
RewriteRule ^tagged/thank\syou$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/thankyou/ [L,R=301,QSD]
RewriteRule ^tagged/thank\syou\sfor\sall\sthe\sdonations\sto\smake\sthis\spossible$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/thankyouforallthedonationstomakethispossible/ [L,R=301,QSD]
RewriteRule ^tagged/the\sbox\sscene$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/theboxscene/ [L,R=301,QSD]
RewriteRule ^tagged/theboxscene\sdoes\sgood$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/theboxscenedoesgood/ [L,R=301,QSD]
RewriteRule ^tagged/twitter\sblackmail$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/twitterblackmail/ [L,R=301,QSD]
RewriteRule ^tagged/we\slove\syou$ /scraping/files/live/theboxsceneproject.org_anakpaklurahbos_gmail.com_swkoo80eya/tagged/weloveyou/ [L,R=301,QSD]

# Create pretty URLs
RewriteRule ^([^/]+)/$ $1.html [S=9]
RewriteRule ^([^/]+)/([^/]+)/$ $1/$2.html [S=8]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3.html [S=7]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4.html [S=6]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5.html [S=5]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6.html [S=4]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7.html [S=3]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7/$8.html [S=2]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7/$8/$9.html [S=1]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7/$8/$9/$10.html
# End: Create pretty URLs

# Redirect all extensions to html
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.shtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.phtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.jhtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.htm$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.php$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.aspx$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.asp$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.jsp$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.apk$ $1.html [L,NC,R=301]
# End: Redirect all extensions to html
