<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule ^$ content.php?mod=home [L]
RewriteRule ^lang-(.*)\.html$ content.php?mod=home&lang=$1 [L]
RewriteRule ^detailpost-([0-9]+)-(.*)-lang-(.*)\.html$ content.php?mod=detailpost&id=$1&lang=$3 [L]
RewriteRule ^pages-([0-9]+)-(.*)-lang-(.*)\.html$ content.php?mod=pages&idp=$1&lang=$3 [L]
RewriteRule ^gallery-lang-(.*)\.html$ content.php?mod=gallery&lang=$1 [L]
RewriteRule ^contact-lang-(.*)\.html$ content.php?mod=contact&lang=$1 [L]
RewriteRule ^category-([0-9]+)-(.*)-lang-(.*)\.html$ content.php?mod=category&idc=$1&lang=$3 [L]
RewriteRule ^search-result-lang-(.*)\.html$ content.php?mod=searchresult&lang=$1 [L]

# hapus tanda pagar (#) untuk mode maintenance website
# RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
# RewriteCond %{REQUEST_URI} !/popojicms/maintenance.html$ [NC]
# RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
# RewriteRule .* /popojicms/maintenance.html [R=302,L]

Options All -Indexes
</IfModule>