MyBB Community Forums

Full Version: Google SEO 1.6.8 [EOL]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2014-11-06, 01:17 PM)frostschutz Wrote: [ -> ]in the wordpress .htaccess, something like


RewriteCond %{REQUEST_URI} !^/forums/

right next to the rewriteconds that are already there



Thanks for the reply.
Still not working.

Is the process which i mentioned at the start (also mentioned below) is correct

""""First of all, this is my third account. And i request you not to delete this. Becuase i am not a spammer. My first account was deal94350, which i tried hard to recover password but could not, i dont know what is the problem. Next i created another account named deal94351, which was banned because i made second account. So both my accounts are inaccessible so i created third account.""~ This message is for mybb support

Now Please help me, I installed google seo 1.6.8 on my forum. I changed the compatibility to 18.
And copied the required file
Code:
RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /forums/

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

# Google SEO 404:
ErrorDocument 404 /forums/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 ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$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]

to .htaccess

All the google seo settings are default and activated.

Now when i applied changes to core files after that the thread urls and all urls changed as said but i am getting 404 error.""

Please help Frostschutz
Don't think that first rewrite rule is correct.
See my .htaccess google seo part:

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>

	RewriteEngine on

	# Some hosts need a RewriteBase specification.
	RewriteBase /forum/

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

	# Google SEO 404:
	ErrorDocument 404 /forum/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 ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$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]

	RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
	RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

	RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
	RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
	RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
	RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
	RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
	RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
	RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

	RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

	RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

	RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

	RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

	RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

	<IfModule mod_env.c>
		SetEnv SEO_SUPPORT 1
	</IfModule>
</IfModule>
this is also not working...what to do...
Won't ever a MyBB 1.8 edition of the plugin come out?
(2014-11-07, 07:24 AM)dimxo Wrote: [ -> ]this is also not working...what to do...

What server software is being used? Apache, nginx, iis or ???

(2014-11-07, 08:07 AM)jpninside Wrote: [ -> ]Won't ever a MyBB 1.8 edition of the plugin come out?

This version works with MyBB 1.8.
Apahe is being used.. am also using Xthreads..is there any compatibility problem between the two plugins...
(2014-11-06, 01:06 PM)frostschutz Wrote: [ -> ]ErrorDocument is bullshit. You need a RewriteCond most likely...

Hello bro.
Will you make a big update for this Plugin for 1.8.x
or is it full compatible with 1.8 already?
i'm setting up a new site, so i can wait the update if you make?
Rather than relying on this plugin its better to adopt different optimizing tips so that you can get great position in search engines.
(2014-11-07, 11:49 AM)diskopat Wrote: [ -> ]
(2014-11-06, 01:06 PM)frostschutz Wrote: [ -> ]ErrorDocument is bullshit. You need a RewriteCond most likely...

Hello bro.
Will you make a big update for this Plugin for 1.8.x
or is it full compatible with 1.8 already?
i'm setting up a new site, so i can wait the update if you make?

It's already compatible with 1.8. Just change the compatibility to "18*"
Thanks everyone for replying.
I solved it. That was due to godaddy's managed wordpress hosting account, which was not allowing .htaccess rewrite rule to redirect.
Finally, i Found a solution, by installing the forum on subdomain. And then it worked.