Rob
Well-known member
I have a test server running nginx and I am trying to get a copy of my site running on it.
I am currently trying to convert some ReWrite Rules over to nginx syntax and am struggling a little...
Here are two example rules:-
I believe for first rule above, the following nginx syntax would work ok:-
I am currently trying to convert some ReWrite Rules over to nginx syntax and am struggling a little...
Here are two example rules:-
#Forum
RewriteRule ^forumname-73/sub-forum-name-10/$ http://www.mydomain.net/forums/international-midwifery.10/ [R=301,L]
#Forum with paging
ReWriteRule ^forumname-73/sub-forum-name-10/index([\d]+).html http://www.mydomain.net/forums/sub-forum-name.10/page-$1 [R=301,L]
I believe for first rule above, the following nginx syntax would work ok:-
Not sure about using permanent AND last but anyway.... how do I do the last .htaccess rule with paging?rewrite ^/forumname-73/sub-forum-name-10/$ http://www.mydomain.net/forums/international-midwifery.26/ permanent last;