Does the bridge work in Nginx? With htaccess not being in Nginx, the rewrite rules can not be applied. Can these be converted somehow, or must I use Apache?
Thanks

Code: Select all
location / {
if ($request_filename ~ /phpBB3(.?)$){
rewrite ^(.*)$ /forum redirect;
}
if ($request_filename ~ /phpBB3/index.php){
rewrite ^(.*)$ /forum?$query_string redirect;
}
if ($request_filename ~ /phpBB3/ucp.php){
rewrite ^(.*)$ /forum/user?$query_string redirect;
}
if ($request_filename ~ /phpBB3/viewforum.php){
rewrite ^(.*)$ /forum/forum?$query_string redirect;
}
if ($request_filename ~ /phpBB3/viewtopic.php){
rewrite ^(.*)$ /forum/topic?$query_string redirect;
}
if ($request_filename ~ /phpBB3/memberlist.php){
rewrite ^(.*)$ /forum/members?$query_string redirect;
}
if ($request_filename ~ /phpBB3/report.php){
rewrite ^(.*)$ /forum/report?$query_string redirect;
}
if ($request_filename ~ /phpBB3/posting.php){
rewrite ^(.*)$ /forum/post?$query_string redirect;
}
if ($request_filename ~ /phpBB3/mcp.php){
rewrite ^(.*)$ /forum/moderator?$query_string redirect;
}
}