MyBB Community Forums

Full Version: Problems url friendly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I have installed the Google Seo plugin for Mybb, all right up there but I wanted to customize the url to make it cleaner, so I have accessed the .htaccess and removed the word "forum" from the Google SEO URL Forums:

Now the Google Seo plugin sends me this notice

  • URL scheme conflict between 'Event-{url}' and '{url}'.

  • URL scheme conflict between 'Calendar-{url}' and '{url}'.

  • URL scheme conflict between 'User-{url}' and '{url}'.

  • URL scheme conflict between 'Announcement-{url}' and '{url}'.

  • URL scheme conflict between 'Thread-{url}' and '{url}'.

  • Add to .htaccess:
    # Some hosts require RewriteBase to make RewriteRules work.
    RewriteBase /

    # Google SEO workaround for search.php highlights:
    # Make this rule the first rewrite rule in your .htaccess!
    RewriteRule ^([^&]*)&(.*)$ https://xxxforo.com/$1?$2 [L,QSA,R=301]

    # Google SEO 404:
    ErrorDocument 404 /misc.php?google_seo_error=404

    # Google SEO Sitemap:
    RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

    # Google SEO URL Forums:
    RewriteRule ^([^./]+)$ forumdisplay.php?google_seo=$1 [L,QSA,NC]

    # Google SEO URL Threads:
    RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

    # Google SEO URL Announcements:
    RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

    # Google SEO URL Users:
    RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

    # Google SEO URL Calendars:
    RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

    # Google SEO URL Events:
    RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]


  • 404, Meta, Redirect, Sitemap and URL are enabled. (Configure)

  • Click to Revert changes to core files.
Will this affect the web something? ,Thank you very much for answering
(2018-11-14, 12:06 AM)miguel36 Wrote: [ -> ]Hello, I have installed the Google Seo plugin for Mybb, all right up there but I wanted to customize the url to make it cleaner, so I have accessed the .htaccess and removed the word "forum" from the Google SEO URL Forums:

Now the Google Seo plugin sends me this notice
  • URL scheme conflict between 'Event-{url}' and '{url}'.
  • # Google SEO URL Events:
    RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

    --- SNIP ---
  • 404, Meta, Redirect, Sitemap and URL are enabled. (Configure)

  • Click to Revert changes to core files.
p

Will this affect the web something? ,Thank you very much for answering

The 'htacccess' must match exactly your current website address. 

If the current address is something like 'https://myforum.com/forum/', then you must do it this way or else nothing will work.

If you drop '/forum/' in the htaccess but the active address is still pointing to the website URL of https://myforums/forum/, then the htaccess file will still be looking at the wrong place.

Also, the website address must be correct in your AdminCP settings.
Thanks, I have fixed the problem, the error was mine since I have several webs with a single hosting and I got confused in editing the .htaccess.
Thank you very much, closed topic