kevinmel2000/phpindonesia.or.id-profile/master/.htaccess - Htaccess File

kevinmel2000/phpindonesia.or.id-profile/master/.htaccess

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ index.php?mod=home [L]
RewriteRule ^pages/([^/]*)$ index.php?mod=pages&idp=$1 [L]
RewriteRule ^pages/([^/]*)/([^/]*)$ index.php?mod=pages&idp=$1&page=$2 [L]
RewriteRule ^category/([^/]*)$ index.php?mod=category&idc=$1 [L]
RewriteRule ^category/([^/]*)/([^/]*)$ index.php?mod=category&idc=$1&page=$2 [L]
RewriteRule ^detailpost/([^/]*)$ index.php?mod=detailpost&id=$1 [L]
RewriteRule ^detailpost/([^/]*)/([^/]*)$ index.php?mod=detailpost&id=$1&page=$2 [L]
RewriteRule ^listevent$ index.php?mod=listevent [L]
RewriteRule ^listevent/page/([^/]*)$ index.php?mod=listevent&page=$1 [L]
RewriteRule ^event/([^/]*)$ index.php?mod=event&ide=$1 [L]
RewriteRule ^album$ index.php?mod=album [L]
RewriteRule ^album/page/([^/]*)$ index.php?mod=album&page=$1 [L]
RewriteRule ^gallery/([^/]*)$ index.php?mod=gallery&ida=$1 [L]
RewriteRule ^gallery/([^/]*)/page/([^/]*)$ index.php?mod=gallery&ida=$1&page=$2 [L]
RewriteRule ^valbum$ index.php?mod=valbum [L]
RewriteRule ^valbum/page/([^/]*)$ index.php?mod=valbum&page=$1 [L]
RewriteRule ^video/([^/]*)$ index.php?mod=video&idv=$1 [L]
RewriteRule ^video/([^/]*)/page/([^/]*)$ index.php?mod=video&idv=$1&page=$2 [L]
RewriteRule ^contact$ index.php?mod=contact [L]
RewriteRule ^search-result/$ index.php?mod=searchresult [L]
RewriteRule ^search-result/([^/]*)$ index.php?mod=searchresult&search=$1 [L]
RewriteRule ^search-result/([^/]*)/([^/]*)$ index.php?mod=searchresult&search=$1&page=$2 [L]
RewriteRule ^login$ index.php?mod=login [L]
RewriteRule ^register$ index.php?mod=register [L]
RewriteRule ^maintenance$ maintenance.php [L]
</IfModule>

<IfModule mod_php5.c>
php_value short_open_tag 1
</IfModule>

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

On Github License

Files

Download PDF of Htaccess file

Comments

Apache