Liam D.
Active member
Would you mind copy-pasting your nginx.conf file, or the one that contains the configuration for your site? I'd like to see the whole part so I can try writing a code that works.
Also, you did replace "/path-to-forums/" next to "location " with the correct path to your forum, right? In that case, then try this:
Remember to delete first the one I suggested if it is still there. Then replace it with this:
Remember to backup your existing config first, as always. Let me know how that works out. Make sure you restart the NginX service after that, and then remember to clear your browser cache before attempting to access the resource again. Also, you do not need to change anything in the code above, since I already took the liberty of adding your forum path (/forum/) to it.
Also, you did replace "/path-to-forums/" next to "location " with the correct path to your forum, right? In that case, then try this:
Remember to delete first the one I suggested if it is still there. Then replace it with this:
Code:
location / {
index index.php index.html;
try_files $uri $uri/ $uri.php?$uri&$args;
}
location /forum {
try_files $uri $uri/ $uri.php?$uri&$args;
}
location /forum/ {
try_files $uri $uri/ $uri.php?$uri&$args;
}
Remember to backup your existing config first, as always. Let me know how that works out. Make sure you restart the NginX service after that, and then remember to clear your browser cache before attempting to access the resource again. Also, you do not need to change anything in the code above, since I already took the liberty of adding your forum path (/forum/) to it.