Senin, 09 April 2012

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
Categories: , , ,

0 comments:

Posting Komentar

Subscribe to RSS Feed Follow me on Twitter!