Nginx rules

vindretros

Moderator Team
Moderator
8Posts:
1 Threads:
Oct 25Joined:
0 Reputation:
#1
Hi guys here are the rewrite's for the nginx config if you use nginx :)

Code:
rewrite ^/([a-zA-Z0-9_-]+)(|/)$ /index.php?url=$1;
   rewrite ^/news/([a-zA-Z0-9_-]+)(|/)$ /index.php?url=news&id=$1;
   rewrite ^/home/([a-zA-Z0-9_-]+)(|/)$ /index.php?url=home&user=$1;
   rewrite ^/swf/habbo-imaging/badge/([a-zA-Z0-9_-]+)(|/)$ /swf/habbo-imaging/badge.php?badge=$1;
   rewrite ^/register/([a-zA-Z0-9_-]+)(|/)$ /index.php?url=register&userref=$1;
   rewrite ^/newpassword/([a-zA-Z0-9_-]+)(|/)$ /index.php?url=newpassword&key=$1;
   rewrite ^/adminpan/([a-zA-Z0-9_-]+)(|/)$ /adminpan/index.php?url=$1;
   rewrite ^/adminpan/gebruiker/([a-zA-Z0-9_-]+)(|/)$ /adminpan/index.php?url=gebruiker&user=$1;
   rewrite ^/adminpan/sollielook/([a-zA-Z0-9_-]+)(|/)$ /adminpan/index.php?url=sollielook&look=$1;
   rewrite ^/adminpan/news/delete/([a-zA-Z0-9_-]+)(|/)$ /adminpan/index.php?url=news&delete=$1;
   rewrite ^/adminpan/news/edit/([a-zA-Z0-9_-]+)(|/)$ /adminpan/index.php?url=editnews&news=$1;
   rewrite ^/adminpan/bans/delete/([a-zA-Z0-9_-]+)(|/)$ /adminpan/index.php?url=bans&delete=$1;
   rewrite ^/adminpan/giveuseroftheweek/([a-zA-Z0-9_-]+)(|/)$ /adminpan/index.php?url=giveuseroftheweek&user=$1;
Reply
Users browsing this thread:
1 Guest(s)