RewriteEngine On
#Options +FollowSymlinks

#RewriteCond %{HTTP_HOST} !^$
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteCond %{HTTPS}s ^on(s)|
#RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

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

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 ^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 ^cara-bermain$ howtoplay.php [L]
RewriteRule ^how-to-play$ howtoplay.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 ^history/p/([0-9]{2})$ 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 ^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
