Welcome! Log In Create A New Profile

Advanced

vbulleting rewrite help needed

Posted by vicky007 
vbulleting rewrite help needed
January 14, 2010 03:01PM
Hello,

I need to rewrite these rewrites to nginx style, if anyone here is able to help I'd be glad:

RewriteRule ^([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ forumdisplay.php/$1 [QSA,L]
RewriteRule ^([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ showthread.php/$1 [QSA,L]
RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]
RewriteRule ^(archive|sitemap)/(.*)$ $1/index.php/$2 [QSA,L]


All rewrites for nginx I found googling are for some vbseo module, not these I use on default vB installation.

Thank you very much.

vicky
Re: vbulleting rewrite help needed
January 18, 2010 08:34PM
Can anyone help please?
Re: vbulleting rewrite help needed
June 04, 2010 06:04AM
Hello ,
This you rules
rewrite ^/([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ /forumdisplay.php/$1 last;
rewrite ^/([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ /showthread.php/$1 last;
if ($uri !~* "(index\.php|\.css)"){
set $rule_2 1$rule_2;
}
if ($rule_2 = "1"){
rewrite ^/(archive|sitemap)/(.*)$ /$1/index.php/$2 last;
}

I hope that to help you .

Also if you have a rules and you want to convert them in the future , i advice you to visit this site
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/

Best Regards ,
M.A.G
Re: vbulleting rewrite help needed
June 04, 2010 06:09AM
M.A.G.: Excellent, thank you! meanwhile I stayed at apache with the vB forum, but now I will try it. Also, the link for converting the rules is perfect and much needed.
Re: vbulleting rewrite help needed
June 04, 2010 06:10AM
Hope thats help you , and i hope to help you in the future .
Best Regards ,
M.A.G
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready