RewriteEngine On
#Options +FollowSymlinks

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

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

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

RewriteRule ^/$ index.php
RewriteRule ^$ index.php
RewriteRule ^404/$ 404.php

RewriteRule ^css/style.css$ css/style.php [L]
RewriteRule ^css/custom.style.css$ css/custom.style.php [L]
RewriteRule ^contact.do$ do.contact.php [L]

RewriteRule ^about$ about.php [L]
RewriteRule ^facility$ facility.php [L]
RewriteRule ^gallery$ gallery.php [L]
RewriteRule ^rooms$ rooms.php [L]
RewriteRule ^rooms/([0-9a-zA-Z\-_.%]+)$ rooms.php?url=$1 [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 ^promo$ promo.php [L]
RewriteRule ^promo/([0-9a-zA-Z\-_.%]+)$ promo.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 ^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 ^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
