# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/

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

# Prevent scraping from archive for free demo
RewriteCond %{HTTP_USER_AGENT} (ia_archiver) [NC]
RewriteRule . - [F,L]

# Create pretty URLs
DirectorySlash Off

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
# End: Create pretty URLs

# Specific redirections
RewriteRule ^index\.html$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/ [L,R=301]
RewriteCond %{QUERY_STRING} ^car_type=경차$
RewriteRule ^rent/list\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/rent/list_car_type-경차.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^car_type=소형/준중형$
RewriteRule ^rent/list\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/rent/list_car_type-소형_준중형.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^car_type=중형차$
RewriteRule ^rent/list\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/rent/list_car_type-중형차.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^car_type=고급차$
RewriteRule ^rent/list\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/rent/list_car_type-고급차.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^car_type=RV/승합차$
RewriteRule ^rent/list\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/rent/list_car_type-RV_승합차.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^car_type=수입차$
RewriteRule ^rent/list\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/rent/list_car_type-수입차.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^car_type=전기차$
RewriteRule ^rent/list\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/rent/list_car_type-전기차.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^site_code=$
RewriteRule ^company/info\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/company/info_site_code.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^site_code=$
RewriteRule ^company/rule_01\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/company/rule_01_site_code.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^site_code=$
RewriteRule ^company/rule_02\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/company/rule_02_site_code.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^site_code=$
RewriteRule ^company/rule_03\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/company/rule_03_site_code.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^c=insert$
RewriteRule ^member/join\.html$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/member/join_html/c-insert.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^cmid=$
RewriteRule ^member/id_check\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/member/id_check_cmid.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^mid=$
RewriteRule ^member/id_check\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/member/id_check_mid.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^cm_pwd=$
RewriteRule ^member/pw_check1\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/member/pw_check1_cm_pwd.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^m_pwd=$
RewriteRule ^member/pw_check1\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/member/pw_check1_m_pwd.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^cm_pwd=$
RewriteRule ^member/pw_check\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/member/pw_check_cm_pwd.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^m_pwd=$
RewriteRule ^member/pw_check\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/member/pw_check_m_pwd.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^site_code=$
RewriteRule ^res/res_chk\.php$ /scraping/files/demo/jejuhanatour.com_nastiahclarda7_gmail.com_m8b5b48eg4/res/res_chk_site_code.html [L,R=301,QSD]

# 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
