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.
(2012-11-14, 01:34 PM)Ans Wrote: [ -> ]I have a file named: translate.php.french.php
where would you put it ?

That file isn't used by Google SEO anymore, you can find character translation in the Google SEO URL settings now.

However that isn't your problem. If you get a 404 error like that, it means your rewrite rules don't work for some reason.
(2012-11-14, 01:42 PM)frostschutz Wrote: [ -> ]That file isn't used by Google SEO anymore, you can find character translation in the Google SEO URL settings now.

However that isn't your problem. If you get a 404 error like that, it means your rewrite rules don't work for some reason.

Ok it doesn't matter ... so what could be the problem? ??? Wink
If Google SEO doesn't complain about anything on the plugins page: I don't know. Check that your RewriteBase is set correctly - or try without setting a RewriteBase. Also try to find out if your host supports rewrites at all - do any other rewrites (such as MyBB's thread-123.html URLs) work?
Ok so for you it's ok it's that?

I've tried re writing htaccess sheet but didn't do any thing

The server has the re wirting enable I ll try to see on the Apache board if any informations
I'm not clear what this indication from the AdminCP means:

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 ^([^&]*)&(.*)$ http://www.alonelylife2.com/$1?$2 [L,QSA,R=301]

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


Is this something that I need to add to my .htaccess file because this plug-in has detected it? Or is this just an informational announcement?

Btw, BEAUTIFUL PLUGIN!
Yes, the plugin detects (or tries to) detect problems with your .htaccess and shows them on the plugin status.

If you rename your .htaccess temporarily and reload the plugins site, you will see what Google SEO expects the whole thing to look like. You can also check the example htaccess file in the Google SEO package to get an idea of what it's supposed to look like in conjunction with MyBB's default htaccess.
quote "I too have the same problem. I downloaded the Google SEO 1.6.3 plugin.
My Main Blog URL is http://www.revealingthestuffs.com/

And I installed MyBB 1.6.8 on my Subdomain : http://forums.revealingthestuffs.com

When I click on The categories , ex: http://forums.revealingthestuffs.com/For...-yourself. I get an Error like:

Not Found

The requested URL /Forum-Introduce-yourself was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have updated htaccess file like this:
RewriteEngine on

# Some hosts need a RewriteBase specification.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forums.revealingthestuffs.com/$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]

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

I want the URL of my Forum like- http://forums.revealingthestuffs.com/For...e-yourself without 404 error. Please suggest me how to fix this 404 error. "

end quote

I have the same issue with 404 page not found I like many others followed this tutorial

http://mybbgroup.com/mybb-google-seo-ins...ybb-1-6-5/

curious how to fix this?
Double check that you have RewriteBase / and not RewriteBase /mybb/ in your .htaccess. Unfortunately the plugin currently does not detect an error in this case because it looks for RewriteBase / and finds it (without realizing there are extraneous characters afterwards).

The example file is just that, an example, and it will not work if you do not adapt all the paths to your situation. It is simpler to start with MyBB's example files and simply add the rules Google SEO shows on the plugins page.

In any case, for URLs to work (not give 404 errors) you need working rewrite rules. For most people this simply works because mod_rewrite is pretty much a standard feature, but it may fail in some environments (e.g. if you have a wordpress installation in the main folder may have its own rewrites interfereing with MyBB rewrites), and some hosts may have special requirements, or mod_rewrite disabled, or enabled only on request.

As this is a web server configuration issue there is really not much more I can do about it.

For those without mod_rewrite, Google SEO also offers a dynamic URL style (showthread.php?Title-Goes-Here) which is described in the documentation.
sorry can you explain this a bit more

"Double check that you have RewriteBase / and not RewriteBase /mybb/ in your .htaccess."

I thought I was supposed to set it the the sub folder I had my forum on

www.mydomian.com/forum/

so would I not set it to RewriteBase /forum/

?
Yes. If it's wordpress interfering you'll have to add a RewriteCond to Wordpress that makes it ignore your forum folder.

Something like
RewriteCond %{REQUEST_URI} !^/forum/
before wordpress RewriteRules.

Of course, should Wordpress actually produce any URLs that start with /forum/, they would not work anymore then. If WordPress wants to own an entire directory for itself, you'll have to move the forum to a subdomain instead. But it'll probably be okay - unlike a Wiki where anyone can edit, you usually have more control, with a WordPress blog.