Konversi .htaccess dari Apache ke Nginx
Contoh:
Jika pada apache
RewriteEngine On
RewriteRule ^index.html$ ./index.php?mdrw=on
RewriteRule ^manual.html$ ./index.php?action=manual&mdrw=on
RewriteRule ^([0-9]+)_([-0-9]+).html$ ./index.php?action=vtopic&forum=$1&page=$2&mdrw=on
Maka pada Nginx
rewrite ^index.html$ index.php?mdrw=on last;
rewrite ^manual.html$ index.php?action=manual&mdrw=on last;
rewrite ^([0-9]+)_([0-9]+).html$ index.php?action=vthread&forum=$1&page=$2&mdrw=on last;
Semoga bermanfaat
0 comments:
Posting Komentar