# invoke rewrite engine
RewriteEngine On
RewriteBase /

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

# Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

# Specific redirections
RewriteRule ^index\.html$ / [L,R=301]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^beta3/community$ beta3/community_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=15$
RewriteRule ^beta3/community$ beta3/community_start-15 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^beta3/community$ beta3/community_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^beta3/community$ beta3/community_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=8$
RewriteRule ^beta3/school/about$ beta3/school/about_start-8 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^beta3/school$ beta3/school_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^community$ community_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=15$
RewriteRule ^community$ community_start-15 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^community$ community_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^community$ community_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=083fd3721aff7609e251e01f118b1ba9863fac4c$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-083fd3721aff7609e251e01f118b1ba9863fac4c [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=08adbd5c9a419d6578302f67e8a39b5148327e29$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-08adbd5c9a419d6578302f67e8a39b5148327e29 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=1a4c6baf35f5f32ceaa9f6cc3b713e3322f3aef1$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-1a4c6baf35f5f32ceaa9f6cc3b713e3322f3aef1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=37cdb439e1853f40491ca683671c504edd30626c$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-37cdb439e1853f40491ca683671c504edd30626c [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=37d573661eaee43117e849e158b71b8c5c6455b6$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-37d573661eaee43117e849e158b71b8c5c6455b6 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=556952f12a2b7659908a2d910485f029087951d6$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-556952f12a2b7659908a2d910485f029087951d6 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=698ff9ef438d7b1963a361cc73061cea2ad25507$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-698ff9ef438d7b1963a361cc73061cea2ad25507 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=6b5bef1384cddf6c29b610ffad29119e2fac43a4$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-6b5bef1384cddf6c29b610ffad29119e2fac43a4 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9zY2hvb2wvMjUtYWJvdXQvNDktZmFjdHM\%3D$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9zY2hvb2wvMjUtYWJvdXQvNDktZmFjdHM [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9zY2hvb2wvMjUtYWJvdXQvNjItYXBwbGljYXRpb24tcHJvY2Vzcw\%3D\%3D$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9zY2hvb2wvMjUtYWJvdXQvNjItYXBwbGljYXRpb24tcHJvY2Vzcw [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9zY2hvb2wvMjUtYWJvdXQvNTAtc3R1ZGVudC1jbHVicw\%3D\%3D$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9zY2hvb2wvMjUtYWJvdXQvNTAtc3R1ZGVudC1jbHVicw [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=b5b323a617ecad97b1da32d9d3730dffedabe6d9$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-b5b323a617ecad97b1da32d9d3730dffedabe6d9 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=cd9ef84595e0ea646b0e641906be34fac63a8083$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-cd9ef84595e0ea646b0e641906be34fac63a8083 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=eacfc80ccbe49de80b5599d7257292beaeda78ff$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-eacfc80ccbe49de80b5599d7257292beaeda78ff [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^en/community/partners$ en/community/partners_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^en/community$ en/community_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=15$
RewriteRule ^en/community$ en/community_start-15 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^en/community$ en/community_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^en/community$ en/community_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=8$
RewriteRule ^en/school/about$ en/school/about_start-8 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^en/school/advisories-staff$ en/school/advisories-staff_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^en/school/advisories-staff$ en/school/advisories-staff_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^en/school/senior-projects$ en/school/senior-projects_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^en/school$ en/school_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^en/updates$ en/updates_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=15$
RewriteRule ^en/updates$ en/updates_start-15 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^en/updates$ en/updates_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=25$
RewriteRule ^en/updates$ en/updates_start-25 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^en/updates$ en/updates_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^KeepThis=true&TB_iframe=true&height=400&width=600$
RewriteRule ^includes/donate_to_us\.php$ includes/donate_to_us_KeepThis-true-TB_iframe-true-height-400-width-600 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^KeepThis=true&TB_iframe=true&height=180&width=250$
RewriteRule ^includes/rate_us\.php$ includes/rate_us_KeepThis-true-TB_iframe-true-height-180-width-250 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^KeepThis=true&TB_iframe=true&height=550&width=535$
RewriteRule ^includes/send_to_a_friend\.php$ includes/send_to_a_friend_KeepThis-true-TB_iframe-true-height-550-width-535 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^index\.php$ index_php [L,R=301,QSD]
RewriteRule ^index\.php/about$ index_php/about [L,R=301,QSD]
RewriteRule ^index\.php/about-us$ index_php/about-us [L,R=301,QSD]
RewriteRule ^index\.php/about/about-the-met$ index_php/about/about-the-met [L,R=301,QSD]
RewriteRule ^index\.php/about/history$ index_php/about/history [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2$ index_php/about/staff-2 [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/295-vince-wolfe$ index_php/about/staff-2/item/295-vince-wolfe [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/296-philip-rosoff$ index_php/about/staff-2/item/296-philip-rosoff [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/297-victoria-lemus$ index_php/about/staff-2/item/297-victoria-lemus [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/298-patrick-reilly$ index_php/about/staff-2/item/298-patrick-reilly [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/299-christopher-chu$ index_php/about/staff-2/item/299-christopher-chu [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/300-monica-hunt$ index_php/about/staff-2/item/300-monica-hunt [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/304-cressie-ross$ index_php/about/staff-2/item/304-cressie-ross [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/305-eliazar-de-la-cruz$ index_php/about/staff-2/item/305-eliazar-de-la-cruz [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/306-grace-yates$ index_php/about/staff-2/item/306-grace-yates [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/307-pamela-patterson$ index_php/about/staff-2/item/307-pamela-patterson [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/309-xico-gonzalez$ index_php/about/staff-2/item/309-xico-gonzalez [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/310-mac-mcwhorter$ index_php/about/staff-2/item/310-mac-mcwhorter [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/311-kerry-hernandez$ index_php/about/staff-2/item/311-kerry-hernandez [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/312-peter-flores$ index_php/about/staff-2/item/312-peter-flores [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/313-rich-bennett$ index_php/about/staff-2/item/313-rich-bennett [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/314-avis-howard$ index_php/about/staff-2/item/314-avis-howard [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/315-priya-jaggi$ index_php/about/staff-2/item/315-priya-jaggi [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/316-scott-ford$ index_php/about/staff-2/item/316-scott-ford [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/320-manuel-favela$ index_php/about/staff-2/item/320-manuel-favela [L,R=301,QSD]
RewriteRule ^index\.php/about/staff-2/item/321-josue-guzman$ index_php/about/staff-2/item/321-josue-guzman [L,R=301,QSD]
RewriteRule ^index\.php/calendar$ index_php/calendar [L,R=301,QSD]
RewriteRule ^index\.php/calendar/2-uncategorised$ index_php/calendar/2-uncategorised [L,R=301,QSD]
RewriteRule ^index\.php/component/k2/itemlist/search$ index_php/component/k2/itemlist/search [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&template=gk_university&link=099d461f9e2c4b246495f2e9021f137db9152684$
RewriteRule ^index\.php/component/mailto$ index_php/component/mailto/tmpl-component-template-gk_university-link-099d461f9e2c4b246495f2e9021f137db9152684 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&template=gk_university&link=0f6f5813b77ea22cf5a59a8f1f20a2abafb11481$
RewriteRule ^index\.php/component/mailto$ index_php/component/mailto/tmpl-component-template-gk_university-link-0f6f5813b77ea22cf5a59a8f1f20a2abafb11481 [L,R=301,QSD]
RewriteRule ^index\.php/component/users$ index_php/component/users [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^view=remind$
RewriteRule ^index\.php/component/users$ index_php/component/users/view-remind [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^view=reset$
RewriteRule ^index\.php/component/users$ index_php/component/users/view-reset [L,R=301,QSD]
RewriteRule ^index\.php/history$ index_php/history [L,R=301,QSD]
RewriteRule ^index\.php/how-to-apply$ index_php/how-to-apply [L,R=301,QSD]
RewriteRule ^index\.php/how-to-apply/37-about$ index_php/how-to-apply/37-about [L,R=301,QSD]
RewriteRule ^index\.php/news$ index_php/news [L,R=301,QSD]
RewriteRule ^index\.php/news/itemlist/search$ index_php/news/itemlist/search [L,R=301,QSD]
RewriteRule ^index\.php/news/latest$ index_php/news/latest [L,R=301,QSD]
RewriteRule ^index\.php/staff$ index_php/staff [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^option=com_k2&view=itemlist&task=calendar&month=11&year=2016&Itemid=671$
RewriteRule ^index\.php$ index_option-com_k2-view-itemlist-task-calendar-month-11-year-2016-Itemid-671 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^option=com_k2&view=itemlist&task=calendar&month=5&year=2016&Itemid=671$
RewriteRule ^index\.php$ index_option-com_k2-view-itemlist-task-calendar-month-5-year-2016-Itemid-671 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^option=com_k2&view=itemlist&task=calendar&month=7&year=2016&Itemid=671$
RewriteRule ^index\.php$ index_option-com_k2-view-itemlist-task-calendar-month-7-year-2016-Itemid-671 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^option=com_k2&view=itemlist&task=calendar&month=9&year=2016&Itemid=671$
RewriteRule ^index\.php$ index_option-com_k2-view-itemlist-task-calendar-month-9-year-2016-Itemid-671 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^option=com_users&view=registration$
RewriteRule ^index\.php$ index_option-com_users-view-registration [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^index\.php$ index_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^index\.php$ index_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^showall=1$
RewriteRule ^internships/34-how-we-educate/56-learning-goals$ internships/34-how-we-educate/56-learning-goals_showall-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=1$
RewriteRule ^internships/34-how-we-educate/56-learning-goals$ internships/34-how-we-educate/56-learning-goals_start-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=2$
RewriteRule ^internships/34-how-we-educate/56-learning-goals$ internships/34-how-we-educate/56-learning-goals_start-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=3$
RewriteRule ^internships/34-how-we-educate/56-learning-goals$ internships/34-how-we-educate/56-learning-goals_start-3 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=4$
RewriteRule ^internships/34-how-we-educate/56-learning-goals$ internships/34-how-we-educate/56-learning-goals_start-4 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^internships/34-how-we-educate/56-learning-goals$ internships/34-how-we-educate/56-learning-goals_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=8$
RewriteRule ^school/about$ school/about_start-8 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^school/advisories-staff$ school/advisories-staff_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^school/advisories-staff$ school/advisories-staff_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^school$ school_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^updates/120-stp$ updates/120-stp_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^updates$ updates_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=15$
RewriteRule ^updates$ updates_start-15 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^updates$ updates_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=25$
RewriteRule ^updates$ updates_start-25 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^updates$ updates_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^es/comunidad$ es/comunidad_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^es/comunidad$ es/comunidad_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=15$
RewriteRule ^es/comunidad$ es/comunidad_start-15 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^es/comunidad/socios$ es/comunidad/socios_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^es/escuela$ es/escuela_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=20$
RewriteRule ^es/escuela$ es/escuela_start-20 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=30$
RewriteRule ^es/escuela$ es/escuela_start-30 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^es/escuela/asesorias-y-personal$ es/escuela/asesorias-y-personal_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=10$
RewriteRule ^es/escuela/asesorias-y-personal$ es/escuela/asesorias-y-personal_start-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=8$
RewriteRule ^es/escuela/sobre$ es/escuela/sobre_start-8 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^start=5$
RewriteRule ^es/noticias$ es/noticias_start-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9ldmVudHMvMS1sYXRlc3QtbmV3cy8xMDItcm9hZC10cmlwLW5hdGlvbg\%3D\%3D$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9ldmVudHMvMS1sYXRlc3QtbmV3cy8xMDItcm9hZC10cmlwLW5hdGlvbg [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component$
RewriteRule ^events/1-latest-news/102-road-trip-nation$ events/1-latest-news/102-road-trip-nation_tmpl-component [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^format=pdf$
RewriteRule ^events/1-latest-news/102-road-trip-nation$ events/1-latest-news/102-road-trip-nation_format-pdf [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9ldmVudHMvMS1sYXRlc3QtbmV3cy8xMDktY29sbGVnZS11bmJvdW5kLXNuaHU\%3D$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9ldmVudHMvMS1sYXRlc3QtbmV3cy8xMDktY29sbGVnZS11bmJvdW5kLXNuaHU [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component$
RewriteRule ^events/1-latest-news/109-college-unbound-snhu$ events/1-latest-news/109-college-unbound-snhu_tmpl-component [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^format=pdf$
RewriteRule ^events/1-latest-news/109-college-unbound-snhu$ events/1-latest-news/109-college-unbound-snhu_format-pdf [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9ldmVudHMvMS1sYXRlc3QtbmV3cy8xMTItc3N1LWNvbGxlZ2UtbWFraW5nLWl0LWhhcHBlbi0yMDEx$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9ldmVudHMvMS1sYXRlc3QtbmV3cy8xMTItc3N1LWNvbGxlZ2UtbWFraW5nLWl0LWhhcHBlbi0yMDEx [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component$
RewriteRule ^events/1-latest-news/112-ssu-college-making-it-happen-2011$ events/1-latest-news/112-ssu-college-making-it-happen-2011_tmpl-component [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^format=pdf$
RewriteRule ^events/1-latest-news/112-ssu-college-making-it-happen-2011$ events/1-latest-news/112-ssu-college-making-it-happen-2011_format-pdf [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9wdWJsaWMtY2FsZW5kYXI\%3D$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-aHR0cDovL3d3dy5tZXRzYWNyYW1lbnRvLm9yZy9wdWJsaWMtY2FsZW5kYXI [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component$
RewriteRule ^events/35-events/87-public-events-calendar$ events/35-events/87-public-events-calendar_tmpl-component [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^format=pdf$
RewriteRule ^events/35-events/87-public-events-calendar$ events/35-events/87-public-events-calendar_format-pdf [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component&link=6947bdc2fc8535c9a9985ebceee937084a72a098$
RewriteRule ^component/mailto$ component/mailto/tmpl-component-link-6947bdc2fc8535c9a9985ebceee937084a72a098 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component$
RewriteRule ^families/36-community/156-paries-jammie-win$ families/36-community/156-paries-jammie-win_tmpl-component [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^format=pdf$
RewriteRule ^families/36-community/156-paries-jammie-win$ families/36-community/156-paries-jammie-win_format-pdf [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^tmpl=component$
RewriteRule ^families/36-community/179-metsters-move$ families/36-community/179-metsters-move_tmpl-component [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^format=pdf$
RewriteRule ^families/36-community/180-may-2012-is-bike-month$ families/36-community/180-may-2012-is-bike-month_format-pdf [L,R=301,QSD]
RewriteRule ^beta17/index\.php/history-of-the-met$ beta17/index_php/history-of-the-met [L,R=301,QSD]
RewriteRule ^beta17/index\.php/staff$ beta17/index_php/staff [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^format=feed$
RewriteRule ^index\.php/about/staff-2$ index_php/about/staff-2_format-feed [L,R=301,QSD]

# Create pretty URLs
DirectorySlash Off

RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ %1 [NC,L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (.*)/$
RewriteRule ^(.*)/$ $1 [NC,L,R=301]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
# 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
