Not Solved MyBB Google SEO Plugin / Nginx FriendlyURLS BROKEN
#1
Not Solved
Hi,

I'm using the Nginx configurations other users have posted here and been told by members their config should work and then some users have even commented back stating it did work for the, but it does not work properly for me.

I have tried two things. (my forum is hosted on the root /)

server {
    listen 443
    server_name domain.vc;

    root /var/www/html/
    index index.html index.php;

    location / {
        rewrite ^/([^&])&(.)$ https://domain.vc/$1?$2 permanent;
        rewrite ^/((?i)sitemap-([^./]+).xml)$ /misc.php?google_seo_sitemap=$2;
        rewrite ^/((?i)Forum-([^./]+))$ /forumdisplay.php?google_seo_forum=$2;
        rewrite ^/((?i)Thread-([^./]+))$ /showthread.php?google_seo_thread=$2;
        rewrite ^/((?i)Announcement-([^./]+))$ /announcements.php?google_seo_announcement=$2;
        rewrite ^/((?i)User-([^./]+))$ /member.php?action=profile&google_seo_user=$2;
        rewrite ^/((?i)Calendar-([^./]+))$ /calendar.php?google_seo_calendar=$2;
        rewrite ^/((?i)Event-([^./]+))$ /calendar.php?action=event&google_seo_event=$2;
        try_files $uri $uri/ /index.php?$args;
    }
} 

Things like clicking a forum section works fine, clicking a user profile shows the friendly url website.com/Username but it just re-direct loops to the homepage/index.php
can someone please just give me a fully working Nginx rewrite configuration that works with the latest versions of nginx/mybb and is ready to just copy out of the box
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)