Current time: 03-21-2010, 10:40 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 43 Votes - 4.44 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google SEO 1.1.11
03-10-2009, 03:53 PM
Post: #21
RE: Google SEO
Quote:If you disable Google SEO URL, use the default MyBB .htaccess and set 'search engine friendly URLs' to 'Yes' in 'Configuration -> Server and Optimization Options (i.e. the thread-1234.html style URLs), do those work for you?

If they work then Google SEO URLs should work too


Indeed it doesn't workBig Grin

However I solved, i put this .htaccess:
PHP Code:
Options -MultiViews +FollowSymlinks -Indexes
<IfModule mod_security.c>
SecFilterEngine Off
</IfModule>
RewriteEngine on
RewriteBase 
/
# As first rewrite rule, Google SEO workaround for search.php highlights:
RewriteRule ^([^&]*)&(.*)$ http://www.mybbitalia.com/$1?$2 [R=301,QSA]
RewriteRule ^forum-([0-9]+).html forumdisplay.php?fid=$[L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+).html forumdisplay.php?fid=$1&page=$[L,QSA]
RewriteRule ^thread-([0-9]+).html showthread.php?tid=$[L,QSA]
RewriteRule ^thread-([0-9]+)-page-([0-9]+).html showthread.php?tid=$1&page=$[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=$[L,QSA]
RewriteRule ^post-([0-9]+).html showthread.php?pid=$[L,QSA]
RewriteRule ^announcement-([0-9]+).html announcements.php?aid=$[L,QSA]
RewriteRule ^user-([0-9]+).html member.php?action=profile&uid=$[L,QSA]
RewriteRule ^calendar-([0-9]+).html calendar.php?calendar=$[L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+).html calendar.php?action=yearview&calendar=$1&year=$[L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+).html calendar.php?calendar=$1&year=$2&month=$[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=$[L,QSA]
RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+).html calendar.php?action=weekview&calendar=$1&week=$[L,QSA]
RewriteRule ^event-([0-9]+).html calendar.php?action=event&eid=$[L,QSA]
# Google SEO URL:
RewriteRule ^Forum-([^./]+)$ forumdisplay.php?google_seo_forum=$[L,QSA,NC]
RewriteRule ^Thread-([^./]+)$ showthread.php?google_seo_thread=$[L,QSA,NC]
RewriteRule ^Announcement-([^./]+)$ announcements.php?google_seo_announcement=$[L,QSA,NC]
RewriteRule ^User-([^./]+)$ member.php?action=profile&google_seo_user=$[L,QSA,NC]
RewriteRule ^Calendar-([^./]+)$ calendar.php?google_seo_calendar=$[L,QSA,NC]
RewriteRule ^Event-([^./]+)$ calendar.php?action=event&google_seo_event=$[L,QSA,NC]
# Google SEO Sitemap:
RewriteRule ^sitemap-([^./]+).xmlmisc.php?google_seo_sitemap=$[L,QSA,NC]
<
IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</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 /misc.php?google_seo_error=404 
and now it worksToungue

But has it not extension at the end of URL?Undecided

http://www.mybbitalia.com
Visit this user's website Find all posts by this user
Quote this message in a reply
03-10-2009, 04:02 PM (This post was last modified: 03-10-2009 04:20 PM by frostschutz.)
Post: #22
RE: Google SEO
You can change the URL scheme in Configuration -> Google SEO URL

So if you so desire you can go from Thread-Some-Subject to Secret-Plan-To-Take-Over-The-World-By-Doing-Some-Subject-and-Magic.flobberworms (but I don't recommend that).

Please note that if you change the URL scheme you will also have to add new rules to your .htaccess, the plugin status should tell you about it.

Please also note that if you use thread-{$url}.html it will clash with MyBB search engine friendly URLs which already are thread-1234.html so you should do that only if you do not want to support MyBB search engine friendly URLs anymore. With default settings, if you used search engine friendly URLs with MyBB before installing Google SEO, those URLs will be redirected to Google SEO URLs (and if you decide you dont want to use Google SEO anymore you could have Google SEO URLs redirected back to MyBB search engine friendly URLs). If you use the same scheme as MyBB for your URLs you lose that ability.

Oh, and while we're on the topic of clashing rewrite rules, please mind this bug report:

http://community.mybboard.net/thread-45861.html

I forgot to fix this in the sample htaccess file, will be fixed in the next version.
2009-03-10: stable release 1.0.1 (awaiting validation, see first post)
  • fix MyBB rewrite rules in the htaccess example files (MyBB bug presumably fixed in MyBB 1.4.5)
  • add warnings to the plugin status page for bad encoding and missing SEO support
  • (hopefully) fix Redirect issue with Safari Beta browser
  • add explanation about sitemap to readme
Visit this user's website Find all posts by this user
Quote this message in a reply
03-10-2009, 04:33 PM
Post: #23
RE: Google SEO
Can't merge threads using SEO URLs.

[Image: signature.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
03-10-2009, 05:09 PM (This post was last modified: 03-10-2009 05:35 PM by frostschutz.)
Post: #24
RE: Google SEO
(03-10-2009 04:33 PM)Bey Brad Wrote:  Can't merge threads using SEO URLs.

Unfortunately that's a limitation. MyBB merge thread feature does not understand third party URLs like Thread-some-subject.

However you can use the Reply link instead of the threadlink. Merge thread will understand the reply link:

http://yoursite/MyBB/newreply.php?tid=1653

Alternatively you can copy any post link and reduce it to:

.php?pid=number

And the merge threads feature will understand it.

All other moderation options (where you can just select the thread with a tickbox) do not suffer from this limitation.

@ the poor soul who validates stuff on the mods page: sorry it seems I uploaded the zip file again just when you had validated it. You are too quick for old frostschutz >_<
Visit this user's website Find all posts by this user
Quote this message in a reply
03-11-2009, 01:58 AM (This post was last modified: 03-11-2009 02:12 AM by indiansword.)
Post: #25
RE: Google SEO 1.0.1
in my public_html i see htaccess

1. .htaccess
2. htaccess.txt
3. htaccess.txt.exmaple

which one should i start editing?

TotalComputerGeek.com
Find all posts by this user
Quote this message in a reply
03-11-2009, 02:02 AM
Post: #26
RE: Google SEO 1.0.1
(03-10-2009 08:17 AM)frostschutz Wrote:  
(03-10-2009 01:18 AM)Tom Loveric Wrote:  I'd try it, but I don't feel like reinstalling MyBB atm.

Why do you have to reinstall MyBB for this?
I currently don't have it installed on my website, or on my localhost serverToungue

The CMS is currently being moved to http://elite-area.com/!
Visit this user's website Find all posts by this user
Quote this message in a reply
03-11-2009, 02:24 AM
Post: #27
RE: Google SEO 1.0.1
alright, after updating .htaccess and functions.php i m getting this error.

Code:
Parse error: syntax error, unexpected T_IF, expecting '{' in /home/techmafi/public_html/inc/functions.php on line 4160

TotalComputerGeek.com
Find all posts by this user
Quote this message in a reply
03-11-2009, 09:48 AM
Post: #28
RE: Google SEO 1.0.1
"Users browsing this forum" no longer displays with this plugin on.

[Image: signature.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
03-11-2009, 10:49 AM
Post: #29
RE: Google SEO 1.0.1
(03-11-2009 02:24 AM)indiansword Wrote:  alright, after updating .htaccess and functions.php i m getting this error.

Code:
Parse error: syntax error, unexpected T_IF, expecting '{' in /home/techmafi/public_html/inc/functions.php on line 4160

Then you didn't edit it correctly. In the Google SEO 1.0.x/ folder of the zip file there should be two files, functions.php.1.4.4-googleseo is the ready to use edited functions.php for MyBB 1.4.4 (don't use it for any other version, also don't use it if you already changed your functions.php for something else).

There also is a functions.php.patch file which shows in more detail where to insert which lines (the lines with + at the beginning are inserts, the lines with - at the beginning are removals (none), and the lines with nothing at the beginning are context so you see where the changes go).

If you are on a Linux machine you can apply the changes with the 'patch' utility.

(03-11-2009 09:48 AM)Bey Brad Wrote:  "Users browsing this forum" no longer displays with this plugin on.

I'll fix it in the next version.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-11-2009, 06:18 PM
Post: #30
RE: Google SEO 1.0.1
Hi,

I have one little question: What happen to Thread-URL when two threads has th same title?

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: