RewriteEngine On
#Options +FollowSymlinks
RewriteBase /

#Force www
#RewriteCond %{HTTP_HOST} ^agenvip88.com [NC]
#RewriteRule ^(.*)$ http://www.agenvip88.com/$1 [L,R=301,NC]

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

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

RewriteRule ^/$ index.php
RewriteRule ^$ index.php
RewriteRule ^404/$ 404.php
ErrorDocument 404 /404.php
AddDefaultCharset UTF-8
Header unset ETag
FileETag None

RewriteRule ^css/style.css$ css/7wc.php [L]
RewriteRule ^css/style.m.css$ css/style.m.php [L]

RewriteRule ^style.fonts/fonts.css$ style.fonts/fonts.php [L]


#RewriteRule ^live-casino$ pagex.php?a=live-casino [L]
#RewriteRule ^slot-games$ pagex.php?a=slot-games [L]
#RewriteRule ^sportsbook$ pagex.php?a=sportsbook [L]
#RewriteRule ^poker$ pagex.php?a=poker [L]
#RewriteRule ^promotion-bonus$ pagex.php?a=promotion-bonus [L]
#RewriteRule ^blog$ pagex.php?a=blog [L]

#RewriteRule ^register$ daftar.php [L]
#RewriteRule ^daftar$ daftar.php [L]
#RewriteRule ^daftar/thanks/([0-9a-zA-Z\-_.%]+)$ daftar.php?rand=$1 [L]
#RewriteRule ^register/thanks/([0-9a-zA-Z\-_.%]+)$ daftar.php?rand=$1 [L]
#RewriteRule ^daftarform$ daftar.form.php [L]
#RewriteRule ^daftarform/thanks/([0-9a-zA-Z\-_.%]+)$ daftar.form.php?rand=$1 [L]

RewriteRule ^cara-bermain$ howtoplay.php [L]
RewriteRule ^rules$ howtoplay.php [L]

RewriteRule ^pasaran-bola$ pasaranbola.php [L]

RewriteRule ^deposit$ deposit.php [L]
RewriteRule ^deposit/thanks/([0-9a-zA-Z\-_.%]+)$ deposit.php?rand=$1 [L]

RewriteRule ^withdraw$ withdraw.php [L]
RewriteRule ^withdraw/thanks/([0-9a-zA-Z\-_.%]+)$ withdraw.php?rand=$1 [L]

RewriteRule ^history$ history.php [L]
RewriteRule ^history/p/([0-9])$ history.php?cp=$1 [L]

RewriteRule ^dream$ mimpi.php [L]
RewriteRule ^mimpi$ mimpi.php [L]

#RewriteRule ^news$ news.php [L]
##RewriteRule ^news/([0-9a-zA-Z\-_.%]+)$ news.php?url=$1 [L]
#RewriteRule ^news/page/([0-9]+)$ news.php?p=$1 [L]
#RewriteRule ^news/story/([0-9a-zA-Z\-_.%]+)$ news.php?url=$1 [L]
RewriteRule ^news$ news.php [L]
RewriteRule ^berita$ news.php [L]
#RewriteRule ^news/([0-9a-zA-Z\-_.%]+)$ news.php?url=$1 [L]
RewriteRule ^news/page/([0-9]+)$ news.php?p=$1 [L]
RewriteRule ^news/story/([0-9a-zA-Z\-_.%]+)$ news.php?url=$1 [L]
RewriteRule ^berita/page/([0-9]+)$ news.php?p=$1 [L]
RewriteRule ^berita/story/([0-9a-zA-Z\-_.%]+)$ news.php?url=$1 [L]


RewriteRule ^promo$ promo.php [L]
RewriteRule ^promo/([0-9a-zA-Z\-_.%]+)$ promo.php?url=$1 [L]
RewriteRule ^promotions$ promo.php [L]
RewriteRule ^promotions/([0-9a-zA-Z\-_.%]+)$ promo.php?url=$1 [L]

RewriteRule ^games$ games.php [L]
RewriteRule ^games/([0-9a-zA-Z\-_.%]+)$ games.php?url=$1 [L]

RewriteRule ^announcements$ announcements.php [L]
RewriteRule ^announcements/([0-9a-zA-Z\-_.%]+)$ announcements.php?url=$1 [L]

RewriteRule ^bantuan$ bantuan.php [L]
RewriteRule ^help$ bantuan.php [L]

RewriteRule ^contact$ contact.php [L]
RewriteRule ^about$ about.php [L]
RewriteRule ^terms-and-conditions$ terms-and-conditions.php [L]
RewriteRule ^privacy-policy$ privacy-policy.php [L]
RewriteRule ^live-scores$ live-scores.php [L]
RewriteRule ^tv-schedule$ jadwal-siaran.php [L]
RewriteRule ^jadwal-siaran$ jadwal-siaran.php [L]
RewriteRule ^nonton-online$ nonton-online.php [L]
RewriteRule ^online-streaming$ online-streaming.php [L]

RewriteRule ^nonton-online/list/([0-9]{4})/([0-9]{2})/([0-9]{2})$ nonton-online.php?py=$1&pm=$2&pd=$3 [L]
RewriteRule ^online-streaming/list/([0-9])/([0-9])/([0-9])$ nonton-online.php?py=$1&pm=$2&pd=$3 [L]
RewriteRule ^nonton-online/highlight/([0-9a-zA-Z\-_.%]+)$ nonton-online.php?hl=$1 [L]
RewriteRule ^online-streaming/highlight/([0-9a-zA-Z\-_.%]+)$ nonton-online.php?hl=$1 [L]
RewriteRule ^nonton-online/stream/([0-9a-zA-Z\-_.%]+)$ nonton-online.php?stream=$1 [L]
RewriteRule ^online-streaming/stream/([0-9a-zA-Z\-_.%]+)$ nonton-online.php?stream=$1 [L]

RewriteRule ^test$ test.php [L]
RewriteRule ^test/([0-9a-zA-Z\-_.%]+)$ test.php?kk=$1 [L]


RewriteRule ^([0-9-a-z-A-Z]+)$ pages.php?a=game-categories&b=$1 [L]
RewriteRule ^([0-9-a-z-A-Z]+)/([0-9-a-z-A-Z]+)$ pages.php?a=game-categories&b=$1&c=$2 [L]


RewriteRule ^gfx/captcha/([0-9]{10}).gif/captcha_order$ recaptcha/captcha.php

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 week"
ExpiresByType image/jpeg "access 1 week"
ExpiresByType image/gif "access 1 week"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType text/html "access 1 week"
ExpiresByType application/pdf "access 1 week"
ExpiresByType text/x-javascript "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 week"
ExpiresByType image/x-icon "access 1 week"
ExpiresDefault "access 1 week"
</IfModule>

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php72___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
