Username:
Password:
Search for Plugins: Advanced
Please Sign in, Register or Resend Activation Email

Forums

  e107 Coders.org :: Forums :: E107 Plugins :: Code Bank
 
<< Previous thread | Next thread >>  
e107 Google Friendly Version     Go to page       >>        
Author Post
systemaddict
Tue Jan 13 2004, 03:02PM
Registered Member #1404
Joined: Fri Dec 19 2003, 09:07AM
Location:
Posts: 25
Hi

I'm not sure if anyone is interested in this and I'm not even sure that it's a problem, but it seems to me that forums, news, etc. in e107 are not properly indexed by Google, and that's really a shame.

I've played around a bit with mod rewrite and I think this could be promising. Take a look at my forum at:

[link]

Feel free to post topics, etc. and notice those niiiice urls. Google would just love to harvest all them, wouldn't she?
Lolo Irie
Tue Jan 13 2004, 06:04PM

Registered Member #3
Joined: Sun May 04 2003, 05:30PM
Location:
Posts: 689
You can check my plugin eGoogle to see how it runs. Maybe it will help ?..
Back to top
Website
systemaddict
Tue Jan 13 2004, 06:23PM
Registered Member #1404
Joined: Fri Dec 19 2003, 09:07AM
Location:
Posts: 25
Have just installed your plugin. It's nice. I like nusoap (have done quite a lot of webservice lately).

Have you checked if your own forums, news, etc. get indexed by Google?
Back to top
Lolo Irie
Wed Jan 14 2004, 01:39PM

Registered Member #3
Joined: Sun May 04 2003, 05:30PM
Location:
Posts: 689
I did a short test, but in fact ypou need a little bit time before many pages are registred by Google and I have only a test site without enough content for intensive test. Sorry...

Maybe someone else ?..
Back to top
Website
systemaddict
Wed Jan 14 2004, 01:43PM
Registered Member #1404
Joined: Fri Dec 19 2003, 09:07AM
Location:
Posts: 25
I've tried to find forum postings from e107.org on Google but only very few are indexed (e.g. "e107 site:e107.org" search query). That's a shame really because Google generates incredible amounts of trafic and that would certainly be a good thing for a website like e107.org.

When I was using php-nuke some folks were spending many hours building a google tap that made all links google-friendly and people were reporting huge increases in trafic.
Back to top
deepz
Wed Mar 17 2004, 02:40PM
Registered Member #1528
Joined: Mon Jan 05 2004, 03:24PM
Location:
Posts: 4
systemaddict can you post .htaccess info and php mod here about this?

Thank`s
Back to top
streaky
Wed Mar 17 2004, 03:35PM
Registered Member #1776
Joined: Sat Jan 31 2004, 03:26PM
Location: Lincoln, UK
Posts: 533
yeah, post what you got please.. :)
Back to top
Website
systemaddict
Wed Mar 17 2004, 04:01PM
Registered Member #1404
Joined: Fri Dec 19 2003, 09:07AM
Location:
Posts: 25
My Google Friendly URL test requires extensive editing of the forum files. I think that Sasuke made a version that could do this without editing of core files. But his contribution might have been lost when e107.org lost their forum posts.
Back to top
sasuke
Wed Mar 17 2004, 05:15PM
Registered Member #484
Joined: Sun Jul 13 2003, 07:28PM
Location: Paris, France.
Posts: 107
I managed to make e107 google friendly, works for all version from v0.6+ till jalist changes url syntax.
I use a buffer, and replaced urls by other then output the page to the browser.
Main problem : doesn't work for e107 support website (it rewrites all urls).
Minor problem : need rules for each plugin, and some other pages.

Urls like forum_viewforum.php?123.123 are rewritten forum,123,123.html (as i can remember).

Supported pages : forum (100%), downloads (100%), news (100%), comments (100%) and some other pages.

---------------------------------------------------------------------------------------------------

Open e107_themes/templates/header_default.php

Replace :
<?php

By :
<?php

function callback
($buffer) {
    
    
// General rules
    
$buffer = eregi_replace("\?([0-9]+)\.([0-9]+)", ",\\1,\\2.html", $buffer);
    
$buffer = eregi_replace("\?([0-9]+)", ",\\1.html", $buffer);

    
// Forums
    
$buffer = str_replace("/forum.php", "/forum.html", $buffer);
    
$buffer = str_replace("forum_viewforum.php", "forum", $buffer);
    
$buffer = str_replace("forum_viewtopic.php", "topic", $buffer);
    
    
// Content
    
$buffer = eregi_replace("content.php\?article\.([0-9]+)", "articles,\\1.html", $buffer);
    
$buffer = eregi_replace("content.php\?review\.([0-9]+)", "reviews,\\1.html", $buffer);    
    
$buffer = str_replace("content.php?article", "articles.html", $buffer);
    
$buffer = str_replace("content.php?reviews", "reviews.html", $buffer);

    
// Downloads
    
$buffer = str_replace("request.php", "request", $buffer);

    
// Comments
    
$buffer = str_replace("comment.php", "comment", $buffer);

    
// Minor Links
    
$buffer = str_replace("signup.php", "signup.html", $buffer);
    
$buffer = str_replace("fpw.php", "fpw.html", $buffer);

    
// News
    
$buffer = str_replace("news.php", "news", $buffer);

    
return ($buffer);
}

ob_start("callback");

Save and close.

Open e107_themes/templates/footer_default.php

Replace :
ob_end_flush();
?>

By :
ob_end_flush();
ob_end_flush();
?>

Save and close.

Rename e107.htaccess by .htaccess

Open .htaccess.

Add the end of the file, add :
Options +FollowSymlinks
RewriteEngine on

RewriteRule ^index\.html$ index.php [L]
RewriteRule ^news\.html$ news.php [L]

RewriteRule ^forum\.html$ forum.php [L]
RewriteRule ^forum,([0-9]+)\.html$ forum_viewforum.php?$1 [L]
RewriteRule ^topic,([0-9]+),([0-9]+)\.html$ forum_viewtopic.php?$1.$2 [L]

RewriteRule ^articles\.html$ content.php?article [L]
RewriteRule ^articles,([0-9]+)\.html$ content.php?article.$1 [L]

RewriteRule ^reviews\.html$ content.php?review [L]

RewriteRule ^request,([0-9]+)\.html$ request.php?$1 [L]

RewriteRule ^comment,([0-9]+)\.html$ comment.php?$1 [L]

RewriteRule ^news,([0-9]+)\.html$ news.php?$1 [L]

RewriteRule ^signup\.html$ signup.php [L]
RewriteRule ^fpw\.html$ fpw.php [L]

Save and close.

Enjoy!

[ Edited Wed Mar 17 2004, 08:20PM ]
Back to top
deepz
Wed Mar 17 2004, 06:09PM
Registered Member #1528
Joined: Mon Jan 05 2004, 03:24PM
Location:
Posts: 4
Replace what parts :| ?



Tanks!
[ Edited Wed Mar 17 2004, 02:07PM ]
Back to top
Go to page       >>   

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
Render time: 3.3081 sec, 3.1733 of that for queries. DB queries: 48.