Not Solved Can't enable SEO friendly URLs on NGINX
#1
Not Solved
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.
Reply
#2
Not Solved
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;
Reply
#3
Not Solved
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?
Reply
#4
Not Solved
(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
Reply
#5
Not Solved
could please show the error logs of nginx or apache which you 're using?
Reply
#6
Not Solved
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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)