Created
July 23, 2016 14:13
-
-
Save agengdp/d9e4739292e16d4b04a39edd08be5598 to your computer and use it in GitHub Desktop.
htaccess e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
RewriteBase / | |
RewriteRule ^music/(.+)/(.+).html$ view.php?id=$1&permalink=$2 | |
RewriteRule ^download/(.+)/(.+).html$ view.php?id=$1&permalink=$2 | |
RewriteRule ^video/(.+)/(.+).html$ download.php?id=$1&ln=$2 | |
RewriteRule ^download/(.+).mp3$ dl.php?id=$1 | |
Options -Indexes | |
ErrorDocument 402 /index.php | |
ErrorDocument 403 /index.php | |
ErrorDocument 404 /index.php | |
ErrorDocument 500 /index.php | |
RewriteRule ^unduh/(.+)$ dl.php?id=$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment