MyBB Community Forums

Full Version: Google SEO 1.8.4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
(2019-07-01, 11:31 AM)Flexibule Wrote: [ -> ]
(2019-06-28, 03:51 PM)frostschutz Wrote: [ -> ]something wrong with your rewrite then.

rewrite for sitemap is optional, you can use misc.php?google_seo_sitemap=index directly

(check Google SEO Sitemap settings)

When I go to misc.php?google_seo_sitemap=index I have this :

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://mydomain.com/sitemap-forums.xml?page=1</loc>
    <lastmod>2019-07-01T11:24Z</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://mydomain.com/sitemap-threads.xml?page=1</loc>
    <lastmod>2019-07-01T11:24Z</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://mydomain.com/sitemap-index.xml?page=1</loc>
  </sitemap>
</sitemapindex>

And when I go to one of the xml it's not working error 404.

I am not sure how you got this mixed up, but look at my website's .htaccess coding.

Deleted for security reasons.
(2019-07-01, 11:50 AM)Serpius Wrote: [ -> ]
(2019-07-01, 11:31 AM)Flexibule Wrote: [ -> ]
(2019-06-28, 03:51 PM)frostschutz Wrote: [ -> ]something wrong with your rewrite then.

rewrite for sitemap is optional, you can use misc.php?google_seo_sitemap=index directly

(check Google SEO Sitemap settings)

When I go to misc.php?google_seo_sitemap=index I have this :

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://mydomain.com/sitemap-forums.xml?page=1</loc>
    <lastmod>2019-07-01T11:24Z</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://mydomain.com/sitemap-threads.xml?page=1</loc>
    <lastmod>2019-07-01T11:24Z</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://mydomain.com/sitemap-index.xml?page=1</loc>
  </sitemap>
</sitemapindex>

And when I go to one of the xml it's not working error 404.

I am not sure how you got this mixed up, but look at my website's .htaccess coding.

Deleted for security reasons.
I'm using NGINX
(2019-07-01, 11:31 AM)Flexibule Wrote: [ -> ]When I go to misc.php?google_seo_sitemap=index I have this :

And when I go to one of the xml it's not working error 404.

go to Google SEO Sitemap settings, change Sitemap URL scheme accordingly.

https://github.com/frostschutz/MyBB-Goog...n-settings

Quote:I'm using NGINX

...either that or make rewrites work, but I can't help you with that. (the included example nginx rules should work, but it depends on your nginx setup)
	location / {
		try_files $uri $uri/ =404;
		rewrite ^/([^&]*)&(.*)$ https://domain.com/$1?$2 permanent;
		rewrite ^/((?i)sitemap-([^./]+)\.xml)$ /misc.php?google_seo_sitemap=$2;
		rewrite ^/((?i)forums-([^./]+))$ /forumdisplay.php?google_seo_forum=$2;
		rewrite ^/((?i)threads-([^./]+))$ /showthread.php?google_seo_thread=$2;
		rewrite ^/((?i)members-([^./]+))$ /member.php?action=profile&google_seo_user=$2;
	}
Ok, thanks anyways. This is my NGINX config if someone want's to help me Smile
(2019-07-01, 02:40 PM)Flexibule Wrote: [ -> ]
	location / {
		try_files $uri $uri/ =404;
		rewrite ^/([^&]*)&(.*)$ https://domain.com/$1?$2 permanent;
		rewrite ^/((?i)sitemap-([^./]+)\.xml)$ /misc.php?google_seo_sitemap=$2;
		rewrite ^/((?i)forums-([^./]+))$ /forumdisplay.php?google_seo_forum=$2;
		rewrite ^/((?i)threads-([^./]+))$ /showthread.php?google_seo_thread=$2;
		rewrite ^/((?i)members-([^./]+))$ /member.php?action=profile&google_seo_user=$2;
	}
Ok, thanks anyways. This is my NGINX config if someone want's to help me Smile

Review the enclosed HELP files that are included in the Google SEO plugin.

Here is the code to get you started properly... this is specific for NGINX setups.

  # Google SEO workaround for search.php highlights:
  # Make this rule the first rewrite rule in your .htaccess!
  rewrite ^/MyBB/([^&]*)&(.*)$ http://yoursite/MyBB/$1?$2 permanent;

  # Google SEO Sitemap:
  rewrite ^/MyBB/((?i)sitemap-([^./]+)\.xml)$ /MyBB/misc.php?google_seo_sitemap=$2;

  # Google SEO URL Forums:
  rewrite ^/MyBB/((?i)Forum-([^./]+))$ /MyBB/forumdisplay.php?google_seo_forum=$2;

  # Google SEO URL Threads:
  rewrite ^/MyBB/((?i)Thread-([^./]+))$ /MyBB/showthread.php?google_seo_thread=$2;

  # Google SEO URL Announcements:
  rewrite ^/MyBB/((?i)Announcement-([^./]+))$ /MyBB/announcements.php?google_seo_announcement=$2;

  # Google SEO URL Users:
  rewrite ^/MyBB/((?i)User-([^./]+))$ /MyBB/member.php?action=profile&google_seo_user=$2;

  # Google SEO URL Calendars:
  rewrite ^/MyBB/((?i)Calendar-([^./]+))$ /MyBB/calendar.php?google_seo_calendar=$2;

  # Google SEO URL Events:
  rewrite ^/MyBB/((?i)Event-([^./]+))$ /MyBB/calendar.php?action=event&google_seo_event=$2;
Will there be some update to this plugin? As some people say it breaks hard, but somehow still works.

This is indeed a great plugin.
(2019-07-01, 06:57 PM)codedude Wrote: [ -> ]Will there be some update to this plugin?

Not for MyBB 1.8 unless someone finds a critical bug...

For MyBB 1.9, sure, but they have to release 1.9 for that to happen first.
Does the sitemap automatically generate? Or will I have to get another plugin for that?
The sitemap is generated everytime it is accessed (like the forum itself), so it's always up-to-date in real-time.

You just have to enable it (check ACP Plugins page, Google SEO plugin status, which links to the sitemap) and perhaps mention it in robots.txt Sitemap: directive or add it to Google directly.

robots.txt
Sitemap: https://your-site-here/sitemap-index.xml
# or when not using rewrites (must be set in 'Google SEO Sitemap' settings):
Sitemap: https://your-site-here/misc.php?google_seo_sitemap=index
How can I embed the Google SEO User URL link in the welcomeblock_member? At the moment, it will redirect to the default member profile URL, however, not the Google SEO url I want it to be.

For example, when someone clicks their username in the welcomeblock_member, it will redirect them to their /User- link instead of member.....php etc
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26