# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/

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

# Specific redirections
RewriteRule ^index\.html$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/ [L,R=301]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^new-collection$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/new-collection_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=eyJhdHRyaWJ1dGVzIjp7ImdzaV9zazEiOiIxOTcwLTAxLTAxIzE2OTgyOTk1NjAiLCJnc2lfcGsxIjoiI3Byb3RvUmVwb3NpdG9yeS1mZWVkLWl0ZW1zI2MyMDcwMDE4LWRjNWMtNDIxYi04OTdmLThiYmQyZmYyNDkwNCIsInNrIjoiMjBkNjUwOTktZTAzNi00YzY2LTk2ZjUtYjgxNmE5ZGQzZDNjIiwicGsiOiIjcHJvdG9SZXBvc2l0b3J5LWZlZWQtaXRlbXMjYzIwNzAwMTgtZGM1Yy00MjFiLTg5N2YtOGJiZDJmZjI0OTA0In19$
RewriteRule ^group/mysite-231-group/discussion$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/files/OGJiZDJmZjI0OTA0In19_zp3njdkvknsh6u4pvpph6v [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=eyJhdHRyaWJ1dGVzIjp7ImdzaV9zazEiOiIxOTcwLTAxLTAxIzE3MzQ3MTg2NzYiLCJnc2lfcGsxIjoiI3Byb3RvUmVwb3NpdG9yeS1mZWVkLWl0ZW1zI2MyMDcwMDE4LWRjNWMtNDIxYi04OTdmLThiYmQyZmYyNDkwNCIsInNrIjoiMmE3NmI0MDctZmYyMi00OGQ1LWExNWEtMGE1MDdkYWVhM2NjIiwicGsiOiIjcHJvdG9SZXBvc2l0b3J5LWZlZWQtaXRlbXMjYzIwNzAwMTgtZGM1Yy00MjFiLTg5N2YtOGJiZDJmZjI0OTA0In19$
RewriteRule ^group/mysite-231-group/discussion$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/files/OGJiZDJmZjI0OTA0In19_xkgj4gpczd6ftnkiz872sa [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=eyJhdHRyaWJ1dGVzIjp7InNrIjoiY2NmZmIyMTQtMTQwMC00NmFlLTkyNDUtNmE5MjZjM2FiOGFiIiwicGsiOiIjcHJvdG9SZXBvc2l0b3J5LWZlZWQtaXRlbXMjYzIwNzAwMTgtZGM1Yy00MjFiLTg5N2YtOGJiZDJmZjI0OTA0IiwiZ3NpX3NrMSI6IjE5NzAtMDEtMDEjMTczMjQ3MDAxMyIsImdzaV9wazEiOiIjcHJvdG9SZXBvc2l0b3J5LWZlZWQtaXRlbXMjYzIwNzAwMTgtZGM1Yy00MjFiLTg5N2YtOGJiZDJmZjI0OTA0In19$
RewriteRule ^group/mysite-231-group/discussion$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/files/OGJiZDJmZjI0OTA0In19_h8i2u8xpw8qkc3nbahjn5u [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^groups$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/groups_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/0204f470-758e-4113-b508-0dda050e26cb/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/0204f470-758e-4113-b508-0dda050e26cb/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/2a4e08d7-c36f-42db-8678-3e9cc5b344b6/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/2a4e08d7-c36f-42db-8678-3e9cc5b344b6/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/3dbf5003-de4f-4fb9-9225-af363e4b3c21/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/3dbf5003-de4f-4fb9-9225-af363e4b3c21/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/42b2ae97-d47a-432a-a4c0-68912b816a38/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/42b2ae97-d47a-432a-a4c0-68912b816a38/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/5ad9af87-43bc-4c09-bb9a-5781fc3baaf6/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/5ad9af87-43bc-4c09-bb9a-5781fc3baaf6/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/8dadf61e-16f7-4173-89ce-05b7e508c1eb/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/8dadf61e-16f7-4173-89ce-05b7e508c1eb/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/a01651e7-ec10-4df2-919e-624a68eacc6c/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/a01651e7-ec10-4df2-919e-624a68eacc6c/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/b167a3cc-2045-4d80-92d1-e7abc10e8971/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/b167a3cc-2045-4d80-92d1-e7abc10e8971/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/e2995091-9b68-4d9a-b45d-834a3465d580/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/e2995091-9b68-4d9a-b45d-834a3465d580/profile_scrollToTop-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^scrollToTop=1$
RewriteRule ^profile/f4e55ddb-b6de-4afb-a13d-e2b41e19513a/profile$ /scraping/files/live/gymfoxapparelshop.com_ligamansion2resmi_gmail.com_ccxplwhw8y/profile/f4e55ddb-b6de-4afb-a13d-e2b41e19513a/profile_scrollToTop-1 [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
