Nginx config for embedded phpbb

seyntjim
Posts: 3
Joined: Sun Sep 24, 2017 10:26 am

Nginx config for embedded phpbb

Post 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.
User avatar
kaspir
Moderator
Moderator
Posts: 88
Joined: Mon Mar 20, 2017 2:38 pm
Location: USA
Contact:

Re: Nginx config for embedded phpbb

Post 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.
Image
World of Phaos RPG online is making it's come back! Play free now!
Check out phpBB contributions & extension downloads. :P
seyntjim
Posts: 3
Joined: Sun Sep 24, 2017 10:26 am

Re: Nginx config for embedded phpbb

Post by seyntjim »

Thanks kaspir. I'm trying new nginx config today. I hope it'll solve my problems.
Post Reply