MyBB Community Forums

Full Version: Can't enable SEO friendly URLs on NGINX
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm trying to enable the search engine friendly URLs option on a fresh install but it's not completely working.

I added the NGINX config like explained on this page:

https://docs.mybb.com/1.8/administration...ndly-URLs/

But it only works for profile and threads, I noticed my forum URL are different that the one on the sample config.

My forums URL are using /board/ instead of /forum/, I guess this is why URL rewriting is not working?

Thank you.
are you change MyBB to board?
for example
 rewrite ^/MyBB/forum-([0-9]+)\.html$ /MyBB/forumdisplay.php?fid=$1;
for your subfolder is
 rewrite ^/board/forum-([0-9]+)\.html$ /board/forumdisplay.php?fid=$1;
My site is in the root directory, so I removed the /MyBB/. What is strange is that when I hover on the forum link I see https://mysite.com/forum-1.html but when I click it goes to https://mysite.com/board-1.html even with nothing in my nginx config file.

What could cause this to happen?
(2022-09-09, 08:46 PM)Donniewr Wrote: [ -> ]My site is in the root directory, so I removed the /MyBB/. What is strange is that when I hover on the forum link I see https://mysite.com/forum-1.html but when I click it goes to https://mysite.com/board-1.html even with nothing in my nginx config file.

What could cause this to happen?

make sure you delete all subfolder in rewrites and in mybb settings.(Board URL)
and if all is good clear your website cache and if you are using CDN Like Cloudflare Clear cache that too
could please show the error logs of nginx or apache which you 're using?
I cleared my browser cache/cookies and tried on a new install, the NGINX rules and the Google SEO plugin are now working. (Don't forget to apply changes to core files in plugin settings)