Thread Rating:
  • 4 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Google SEO 1.8.3
(07-01-2019, 11:31 AM)Flexibule Wrote:
(06-28-2019, 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 Serpius and You're Not    ¯\_(ツ)_/¯
[Image: y3xr3cj5]
Reply
(07-01-2019, 11:50 AM)Serpius Wrote:
(07-01-2019, 11:31 AM)Flexibule Wrote:
(06-28-2019, 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
Reply
This user has been denied support. This user has been denied support.
(07-01-2019, 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)
Reply
	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
Reply
(07-01-2019, 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;
I'm Serpius and You're Not    ¯\_(ツ)_/¯
[Image: y3xr3cj5]
Reply
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.
Reply
This user has been denied support. This user has been denied support.
(07-01-2019, 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.
Reply
Does the sitemap automatically generate? Or will I have to get another plugin for that?
Reply
This user has been denied support. This user has been denied support.
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
Reply
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)