Skip to content

Instantly share code, notes, and snippets.

@agengdp
Created July 23, 2016 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agengdp/d9e4739292e16d4b04a39edd08be5598 to your computer and use it in GitHub Desktop.
Save agengdp/d9e4739292e16d4b04a39edd08be5598 to your computer and use it in GitHub Desktop.
htaccess e
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