Page 1 of 1
Nginx config for embedded phpbb
Posted: Sun Sep 24, 2017 2:51 pm
by seyntjim
Hello,
Can you please share a working nginx config for embedded phpbb on wordpress? I tried embedding my forum, sometimes it works sometimes it shows 404. I don't know what's the issue. Thank you.
Re: Nginx config for embedded phpbb
Posted: Mon Sep 25, 2017 5:28 am
by kaspir
First thing I would do is save a copy of your .htaccess OR in this case a nginx configuration somewhere safe.
Then create a clean new one using only what you need. Starting with this ONLY what is required, for example on apache:
Code: Select all
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
We do this to work out any errors you may have in current .htaccess, you may add one codex at a time thereafter, testing as you go and quickly find a culprit if you have one producing that 404 error.
I don't know how to write nginx, but give this a try mate! It's a online convertor I just stumbled upon:
https://winginx.com/en/htaccess
EDIT: btw, 404 server error is does not exist right? So ask yourself which url is showing your error and could also begin there.
Re: Nginx config for embedded phpbb
Posted: Mon Sep 25, 2017 6:21 am
by seyntjim
Thanks kaspir. I'm trying new nginx config today. I hope it'll solve my problems.