MyBB Community Forums

Full Version: Google SEO Legacy 1.4.1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2009-11-18, 10:57 PM)frostschutz Wrote: [ -> ]Is your new host running PHP 5.3? In that case you'd need to modify google_seo/redirect.php (see first post). Other than that, I don't know. How does it not work, what happens? Do you get google_seo_redirect in the URL if you enable redirect debug?

Not, is not PHP 5.3.x, and I dont have the google_seo_redirect, I will try with the redirect debug setting now.
Just installed the mod and attempted to add the the sitemap to google and it gave me the following error:

Redirect error: Redirect error
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.


My Robots.txt file has the following in it

Sitemap: http://amusinggames.net/forum/sitemap-index.xml

User-Agent: *
Disallow: /forum/captcha.php
Disallow: /forum/editpost.php
Disallow: /forum/misc.php
Disallow: /forum/modcp.php
Disallow: /forum/moderation.php
Disallow: /forum/newreply.php
Disallow: /forum/newthread.php
Disallow: /forum/online.php
Disallow: /forum/printthread.php
Disallow: /forum/private.php
Disallow: /forum/ratethread.php
Disallow: /forum/report.php
Disallow: /forum/reputation.php
Disallow: /forum/sendthread.php
Disallow: /forum/task.php
Disallow: /forum/usercp.php
Disallow: /forum/usercp2.php
Disallow: /forum/calendar.php
Disallow: /forum/*action=emailuser*
Disallow: /forum/*action=nextnewest*
Disallow: /forum/*action=nextoldest*
Disallow: /forum/*action=emailuser*
Disallow: /forum/*year=*
Disallow: /forum/*action=weekview*
Disallow: /forum/*action=nextnewest*
Disallow: /forum/*action=nextoldest*
Disallow: /forum/*sort=*
Disallow: /forum/*order=*
Disallow: /forum/*mode=*
Allow: /

My .htaccess file is the following:
Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
	# Turn off mod_security filtering.
	SecFilterEngine Off

	# The below probably isn't needed, but better safe than sorry.
	SecFilterScanPOST Off
</IfModule>

#
# 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

# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://amusinggames.net/forum/$1?$2 [L,QSA,R=301]

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

# Google SEO URL Events:
RewriteRule ^Event-([^./]+)$ calendar.php?action=event&google_seo_event=$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]

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>

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


My site is amusinggames.net/forum/ everthing works perfectly except for the sitemap error. Has anyone had the problem before?
Ok does you apache have mod_rewrite enabled, just a thought?
(2009-11-19, 11:37 PM)technoman Wrote: [ -> ]Ok does you apache have mod_rewrite enabled, just a thought?

I was lurking on my hosts forum and I found a post that said they are on by default.
I can see your sitemap just fine. Did you fix it in the meantime?
Hello,

I just setup a forum with your plugins and so far it runs great. But I may have some suggestion.

For example I setup the following forum (and sub forum)

Data Access
--Oracle
--MySQL
--ORM
----Hibernate
--Miscellaneous

Web Development
--PHP
----Miscellaneous

Using your plugin I can get the following URL :

http://mydomain.com/forum/data-access
http://mydomain.com/forum/oracle
http://mydomain.com/forum/hibernate

Please note that if there's similiar thread like 'Miscellaneous' forum (see example above) the resulting URL would be :

http://mydomain.com/forum/Miscellaneous (for 1rst forum)
http://mydomain.com/forum/Miscellaneous--1 (for 2nd forum)

I think it would be nice if you include the category or parent forum (if its sub forum) so the result would be:

http://mydomain.com/forum/data-access
http://mydomain.com/forum/data-access/oracle
http://mydomain.com/forum/data-access/orm/hibernate
http://mydomain.com/forum/data-access/miscellaneous
http://mydomain.com/forum/web-development/miscellaneous

Please advise.
MyBB uses relative links everywhere so introducing any kind of directory structure breaks stuff. It was added as an experimental feature some versions back and removed again because of problems it caused. I will try virtual directory structures again in Google SEO 1.2.0 but it will never be 100% fool proof.
I got a problem with sitemap submission ... My sitemap worked fine till today and now google refuses to index it ... i dont know why ... anyone got the same problem ?
Resubmit it again in Webmaster Tools, it happens with my sitemap made by another script (nothing to do with MyBB), don't know why, there's nothing wrong with it, resubmitting it gets it working again.
One little suggestion. Make local URLs (like http://community.mybboard.net/thread-46423-page-86.html) Turn into Google SEO 1.1.6? Apparently *I've been told.* that that helps.
Also i get this bug. I think its my server. It gives me a 500 error when i change my .htaccess for the URL.

Options -MultiViews +FollowSymlinks -Indexes## If mod_security is enabled, attempt to disable it.# - Note, this will work on the majority of hosts but on#   MediaTemple, it is known to cause random Internal Server#   errors. For MediaTemple, please remove the block below#<IfModule mod_security.c>	# Turn off mod_security filtering.	SecFilterEngine Off	# The below probably isn't needed, but better safe than sorry.	SecFilterScanPOST Off</IfModule>## 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	# Google SEO workaround for search.php highlights:	# Make this rule the first rewrite rule in your .htaccess!	RewriteRule ^([^&]*)&(.*)$ http://tm0.org/forum/$1?$2 [L,QSA,R=301]	# 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]	# Default MyBB Rewrite Rules:	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]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [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>## If Apache is compiled with built in mod_deflade/GZIP support# then GZIP Javascript, CSS, HTML and XML so they're sent to# the client faster.#<IfModule mod_deflate.c>	AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml</IfModule># Google SEO 404:ErrorDocument 404 /MyBB/misc.php?google_seo_error=404

That is my .htaccess. But i do think it is my server.

Sorry i can't be asked to search through 85 pages to find the correct solution.