9
   

phpBB Search Engine Optimization - Sessions, static ( SEO )

 
 
hedgehog
 
  1  
Thu 30 Mar, 2006 11:55 pm
Do you mean like the links on my site???

Edit [Moderator]: Website removed

I think i have just about every seo mod there is... SID, mod rewrite, dynamic keywords, dynamic title...ect
0 Replies
 
sfera
 
  1  
Sun 2 Apr, 2006 04:37 pm
sry cant see your site but , what mode did you use for SEF ?
0 Replies
 
varteju
 
  1  
Sun 2 Apr, 2006 04:58 pm
Hey, I installed this hack a while ago and it worked/works great. HOWEVER, I noticed that google has only indexed my threads...but NONE of my topics.

The threads start with forum- and the topics with about...i don't know if it makes any difference!

Please help...as you know the topics make the difference since there's more of them and each could be a new entry page.

Thanks in advance!
0 Replies
 
hedgehog
 
  1  
Mon 3 Apr, 2006 02:52 pm
yes my url was removed

PM me if you can or email me at

[email protected]
0 Replies
 
saxena
 
  1  
Wed 5 Apr, 2006 03:15 am
Search Engine Optimization Magical PR
I am quite amazed at various techniques of Search Engine Algorithms. Yesterday I observed a strange phenomenon.

The website Edit (Moderator): URL removed has a PR of 3 whereas all deep links have PR 4-5. I am quite amazed at this phenomenon. If anyone knows whats up with the PR in this case do let me know

bye
raj
0 Replies
 
chris19732005
 
  1  
Sat 15 Apr, 2006 01:25 pm
Hello there,

Im using ezportal and was wondering whether I could also use this hack for my recent topic block links?

Thanx in advance.

Regards,
Chris
0 Replies
 
cityTraveller
 
  1  
Tue 18 Apr, 2006 04:53 am
hi there,

I really glad to have found this SEO mod and I have got 98% of the modifications done, but (as usual) the latest part doesn't work.

That is .htaccess

I can see the url are SEO friendly when you are a guest. But when you click on one of them my .htacces doesn't do his job.

I am using phpBB 2.0.2 (the latest) and my forum is in subfolder forum and not forums so I edit .htaccess to

Code:
RewriteEngine On
RewriteRule ^forum.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]


but Edit [Moderator]: Link removed doesn't go to the particular forum just stays on the index page

Any suggestions???
0 Replies
 
cityTraveller
 
  1  
Tue 18 Apr, 2006 05:04 am
oops,

Solution: I shouldn't edit forums to forum in my .htaccess
0 Replies
 
Xorro
 
  1  
Tue 18 Apr, 2006 07:16 am
I'm up to point 19 on the list - but I do not know how to get search engines to ignore these bits of code.

Could someone point me in the right direction?

BTW, this must be one of the most viewed threads on the net!
0 Replies
 
handy1
 
  1  
Wed 19 Apr, 2006 04:34 pm
Changing .htaccess to rewrite MY index.php
I installed this mod, and it works great!
However, my index page is not the phpbb index (I change that to forum.php) and I want to rewrite some links on my index.php page, because it contains some dynamic links to the forum in a Last 10 Active Forum Topics table.

How do I change .htaccess to include these forum links in a rewrite?

I shouldn't need to change MY index.php because it contains most of the same code as the original phpbb index.php file.

Any help would be great!
Handy

BTW, Sorry about the link. I didn't know it was illegal, it won't happen again. Though it would be nice to upload a screen shot in leu of a link, so people know what I'm talking about.
0 Replies
 
Craven de Kere
 
  1  
Thu 20 Apr, 2006 11:36 pm
Xorro wrote:

BTW, this must be one of the most viewed threads on the net!


I've really not had the time to support people these days. But did want to comment on this. It's just plain weird how many forums use this mod. Just yesterday I was searching for an example of a moo.fx menu and I found it on a forum using my mod... that happens all the time.

It comes back to you! I have found many things while searching that may have been helped up the rankings with this SEO mod.

Unfortunately there aren't that many people who stick around to support it (understandable as it's a basic mod without many updates) and I dont' have the time right now. I have a few cool updates that I've never had time to release and if anyone else wants to take on this thread and support/update this mod I'd be happy to pass on the ideas and some code examples (what's really needed is testing/debugging and support).
0 Replies
 
Max-
 
  1  
Sun 30 Apr, 2006 02:07 am
This Mod sounds nice, but does it all work for 2.0.20 ?

Quote:
17) Link the user post count to a search of the user's posts (Craven de Kere)

The user search page is a good way to capture more search engine traffic. This provides a link for the spiders.


I think this makes double content
double content is not very good for seo.

Max
0 Replies
 
timbisley
 
  1  
Sun 7 May, 2006 05:20 pm
I tried installing it on 2.0.20 with EasyMod but got the following error message:

Critical Error

FIND FAILED: In file [index.php] could not find:

'<a>' . $forum_data[$j]['username'] . '</a> ';

MOD script line #91 :: FAQ :: Report


Any ideas what may be wrong?
0 Replies
 
giorgioarmani
 
  1  
Tue 9 May, 2006 12:28 pm
How can I "reshow" signatures to guests?
I applied this mod... Now noticed the sigs would be useful (especially mine) to guests... How can I show mine or just generally "turn on" the signatures for guests as well?
0 Replies
 
amir abbas
 
  1  
Wed 10 May, 2006 06:25 am
hello

in need a rewrite mod for phpbb
i've installed able2know rewrite mod but
when you see the forum like a guest, url are in HTML format
but when you log in, URL will back to php format
in need a url mod that change the URL to html format all the time
for guest and members
like phpbb2.de forum

please help me
thank you
0 Replies
 
amir abbas
 
  1  
Wed 10 May, 2006 08:18 am
see this mod
this rewirte mod is very good
this mod put the title of the topic in URL
its very good for pagerank

Code:##############################################################
## MOD Title: phpBB SEO keyword URLs
## MOD Author: webmedic ([email protected]) <Brook> http://www.webmedic.net Updated to work with Blogpoint BLOG MOD by Tony Malone
## Original code from: http://www.webmasterbrain.com/forum/question-static-sef-urls-for-phpbb-vt34.php
## MOD Description: This mod makes static URLs for phpBB
## Please read the author notes BEFORE using this mod.
## Check http://www.webmedic.net/phpbb-google-msn-yahoo-seo-keyword-urls-mod-vt28667.html
## for the latest version or to get help with this MOD
##
## MOD Version: 2.3.0.TM1 PLEASE NOTE: This is Webmedics keywords hack, which I have just updated for blogpoint.
## You should retain all webmedics existing author information.
## Installation Level: (Advanced)
## Installation Time: 5 Minutes
## Files To Edit: (3)
## .htaccess,
## page_header.php,
## page_footer.php,
## overall_footer.tpl
## Included Files: n/a
##############################################################
## Author Notes:
## Use this mod together with the manage bots mod already included with integramod
## Make backups and test this on a test forum if you can. This is not a typical mod.
## This version is not like all the other mod rewrite and search engine optimization mods
## out there. It will make your urls into keyword phrases. to do this it rewrites the url
## to look like the topic or forum title.
## To see this mod in action please goto:
## http://www.webmedic.net/index.php
##
## LICENSE:
## Due to some issues with others taking my work and not offering proper credit
## (in as much as they have removed my credits and added their own) I have added
## a LICENSE.TXT. I have decided to license this under the RPL which states you can not
## remove my credits and if you make any modifications you have to resubmit the modifications
## to me for includion into this toolkit again. You can read the license for yourself for
## further info. It is also an open source license that has been deemed ok by osi.
##
## Along with this I now require a link to use this mod. If you don't want to have the
## linkback I will remove the requirement for a linkback for a small fee. If you are
## interested in removing the link please contact me at [email protected]
##
## All previous versions are licensed under the rpl from 6/29/2005
##
##############################################################
## MOD History:
##
## 2005-08-14 - Version 2.3.0
## - Fixes for header errors and code clean up
## - Added new characters to make url friendly function
## - I went up a whole revision number as there were quite a few little bug fixes.
## I also want to start a new thread for this.
##
## 2005-07-15 - Version 2.2.3
## - small fix for some header issues.
##
## 2005-07-03 - Version 2.2.2
## - Dissabled some of the page optimizations to fix issues with some javascripts
## and css.
## - Added keyword meta tags to the zip.
##
## 2005-06-29 - Version 2.2.1
## - Added LICENSE.TXT after finding a few other sites taking credit for this mod.
## - Added footer text for usage of this mod.
## - Changed order of the install to help with any errors that may occur durring install.
## - Fixed a few issues with overly optimizing the pages.
##
## 2005-06-24 - Version 2.2.0
## - Rewrote some of the code for the smartor album again. This time it is more
## comprehensive and should fix even unforeseen issues.
## - Added new features so that when the page is being gziped it also removes
## Unwanted comments, spaces, tabs, line feeds, and carriage returns. This also
## makes the page smaller and helps to speed things up.
##
## TODO: Fix forward and back links as well as links within threads that have multiple pages.
##
## 2005-06-21 - Version 2.1.0
## - Rewrote a good portion of the smartor album code so that it works better.
## - Added support for categories hierarchy thanks to 993ti at the
## www.webmedic.net forums.
## - Fixed major bug with phpbb were gzip was not working properly at all ever.
## This mod fixes that issue so that gzip encoding now works properly.
##
## 2005-06-19 - Version 2.0.2
## - Fixed small issue with " showing up in the url as -quot-
## This was due to phpbb changing " to " which is correct
## but still does not look good in a url. So now it is completely removed.
##
## 2005-06-14 - Version 2.0.1
## - Fixed small issue with url's not being rewritten if the site was using gzip compression.
## - Fixed some of the string replace entries to not look for more than one space
## - added <and> to the string replace functions
##
## 2005-06-07 - Version 2.0.0
## - Added ability to use with pafiledb mod
## - Added ability to use with kb mod (NOT WORKING YET)
## - Added ability to use with Smartor album mod
## - Added German umlauts & special characters (thanks to m³)
## - Modified the way links are generated somewhat.
## Hopefully the new method will catch a few things the old one did not.
##
## 2004-11-03 - Version 1.1.0
## - Added replacements for /, \, and foreign character sets.
##
## 2004-08-22 - Version 1.0.0
## - Initial public release.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

.htaccess

#
#-----[ ADD ]------------------------------------------
#

RewriteEngine On
#this may cause issues with subdirs and so I have not enabled it.
# NOTE: replace "community" directory with your forum subfolder
RewriteBase /forum/

RewriteRule [.]*-vf([0-9]*) index.php?%{QUERY_STRING}&f=$1
RewriteRule [.]*-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1
RewriteRule [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1
RewriteRule [.]*-vc([0-9]*) index.php?%{QUERY_STRING}&c=$1
RewriteRule [.]*-ac([0-9]*) album_cat.php?%{QUERY_STRING}&cat_id=$1
RewriteRule [.]*-at([0-9]*) album_thumbnail.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apic([0-9]*) album_pic.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apm([0-9]*) album_picm.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-full-asp([0-9]*) album_showpage.php?full=&pic_id=$1
RewriteRule [.]*-asp([0-9]*) album_showpage.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-aper([0-9]*) album_personal.php?%{QUERY_STRING}&user_id=$1
RewriteRule [.]*-dc([0-9]*) dload.php?%{QUERY_STRING}action=category&cat_id=$1
RewriteRule [.]*-df([0-9]*) dload.php?%{QUERY_STRING}action=file&file_id=$1
RewriteRule [.]*-kbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-kba([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-kbsmp kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-kbstr kb.php?mode=stats&stats=toprated
RewriteRule [.]*-kbsl kb.php?mode=stats&stats=latest
RewriteRule [.]*-pbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-pa([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-psmp kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-pstr kb.php?mode=stats&stats=toprated
RewriteRule [.]*-pbsl kb.php?mode=stats&stats=latest
RewriteRule [.]*-wl([0-9]*) weblog.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-wa([0-9]*) weblog_allentries.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-wf([0-9]*) weblog_friends.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-we([0-9]*) weblog_entry.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-wc([0-9]*) weblog_contributors.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-wr([0-9]*) weblog_rss.php?%{QUERY_STRING}&w=$1


#
#-----[ OPEN ]------------------------------------------
#

includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#

//
// gzip_compression
//
$do_gzip_compress = FALSE;
if($board_config['gzip_compress'])
{
$phpver = phpversion();

if($phpver >= "4.0.4pl1")
{
if(extension_loaded("zlib"))
{
if (headers_sent() != TRUE)
{
$gz_possible = isset($HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]) && eregi("gzip, deflate",$HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]);
if ($gz_possible) ob_start("ob_gzhandler");
}
}
}
else if($phpver > "4.0")
{
if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))
{
if(extension_loaded("zlib"))
{
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);

header("Content-Encoding: gzip");
}
}
}
}

#
#-----[ REPLACE, WITH ]------------------------------------------
#

//
// Begin keyword urls mod
//

//while (@ob_end_flush());
ob_start();


function make_url_friendly($url)
{

$url = trim($url);

$url = strtolower($url);

// Fix for most recent topics block
// or else a b is shown in every url
$find = array('<b>',
'</b>');
$url = str_replace ($find, '', $url);

$url = preg_replace('/</0>/', '', $url);

$find = array(' ',
'"',
'&',
'\r\n',
'\n',
'/',
'\\',
'+',
'<',
'>');
$url = str_replace ($find, '-', $url);

$find = array('é',
'è',
'ë',
'ê',
'ة',
'ب',
'ث',
'ت');
$url = str_replace ($find, 'e', $url);

$find = array('ي',
'ى',
'î',
'ï',
'ح',
'ج',
'خ',
'د');
$url = str_replace ($find, 'i', $url);

$find = array('َ',
'ٍ',
'ô',
'س',
'ز',
'ش');
$url = str_replace ($find, 'o', $url);

$find = array('ِ',
'ض');
$url = str_replace ($find, 'oe', $url);

$find = array('ل',
'à',
'â',
'ء',
'ہ',
'آ');
$url = str_replace ($find, 'a', $url);

$find = array('ن',
'ؤ');
$url = str_replace ($find, 'ae', $url);

$find = array('ْ',
'ù',
'û',
'ع',
'ظ',
'غ');
$url = str_replace ($find, 'u', $url);

$find = array('ü',
'ـ');
$url = str_replace ($find, 'ue', $url);

$find = array('ك');
$url = str_replace ($find, 'ss', $url);

$find = array('ç');
$url = str_replace ($find, 'c', $url);

$find = array('/[^a-z0-9\-<>]/',
'/[\-]+/',
'/<[^>]*>/');

$repl = array('',
'-',
'');

$url = preg_replace ($find, $repl, $url);

$url = str_replace ('--', '-', $url);

return $url;

}



function rewrite_urls($content)
{

function if_query($amp)
{

if($amp != '')
{
return '?';
}

}

$url_in = array('/(?</index>]+>)(.*?)</a>/e',
'/(?</index>]+>)(.*?)</a>/e',
'/(?</viewtopic>]+>)(.*?)</a>/e',
'/(?</viewtopic>]+>)(.*?)</a>/e',

'/(?</weblog>]+>)(.*?)</a>/e',
'/(?</weblog_allentries>]+>)(.*?)</a>/e',
'/(?</weblog_friends>]+>)(.*?)</a>/e',
'/(?</weblog_entry>]+>)(.*?)</a>/e',
'/(?</weblog_contributors>]+>)(.*?)</a>/e',
'/(?</weblog_rss>]+>)(.*?)</a>/e',

'/(?</album_cat>]+>)(.*?)</a>/e',
'/(?</album_thumbnail>]+>)(.*?)</a>/e',
'/(?</album_pic>]+>)(.*?)</a>/e',
'/(?</album_picm>]+>)(.*?)</a>/e',
//'/(?</album_showpage>]+>)(<img .*?)</a>/e',
'/(?</album_showpage>]+>)(.*?)</a>/e',
'/(?</album_showpage>]+>)(.*?)</a>/e',
'/(?</album_personal>]+>)(.*?)</a>/e',
'/(?</dload>]+>)(.*?)</a>/e',
'/(?</dload>]+>)(.*?)</a>/e',
'/(?</kb>]+>)(.*?)</a>/e',
'/(?</kb>]+>)(.*?)</a>/e',
'/(?</kb>]+>)(.*?)</a>/e',
'/(?</kb>]+>)(.*?)</a>/e',
'/(?</kb>]+>)(.*?)</a>/e',
'/(?</press>]+>)(.*?)</a>/e',
'/(?</press>]+>)(.*?)</a>/e',
'/(?</press>]+>)(.*?)</a>/e',
'/(?</press>]+>)(.*?)</a>/e',
'/(?</press>]+>)(.*?)</a>/e');

$url_out = array("make_url_friendly('\\6') . '-vf\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-vf\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-vp\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-vt\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",

"make_url_friendly('\\6') . '-wl\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-wa\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-wf\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-we\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-wc\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-wr\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",

"make_url_friendly('\\6') . '-ac\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-at\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-apic\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-apm\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
//"'show-pic-asp\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"'image-full-asp\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-asp\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-aper\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-dc\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-df\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-kbc\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-kba\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\5') . '-kbsmp.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
"make_url_friendly('\\5') . '-kbstr.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
"make_url_friendly('\\5') . '-kbsl.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
"make_url_friendly('\\6') . '-pc\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '-pa\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\5') . '-psmp.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
"make_url_friendly('\\5') . '-pstr.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
"make_url_friendly('\\5') . '-psl.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'");

$content = preg_replace($url_in, $url_out, $content);

return $content;

}


//
// end keyword urls mod
//

#
#-----[ OPEN ]------------------------------------------
#

includes/page_tail.php

#
#-----[ FIND ]------------------------------------------
#

if ( $do_gzip_compress )
{
//
// Borrowed from php.net!
//
$gzip_contents = ob_get_contents();
ob_end_clean();

$gzip_size = strlen($gzip_contents);
$gzip_crc = crc32($gzip_contents);

$gzip_contents = gzcompress($gzip_contents, 9);
$gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);

echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
echo $gzip_contents;
echo pack('V', $gzip_crc);
echo pack('V', $gzip_size);
}

#
#-----[ REPLACE, WITH ]------------------------------------------
#

//
// begin keyword urls mod
//


if( function_exists(ob_gzhandler) && $board_config['gzip_compress'] == 1)
{
$gzip_contents = rewrite_urls(ob_get_contents());
ob_end_clean();
ob_start('ob_gzhandler');
echo $gzip_contents;
ob_end_flush();
}
else
{
$contents = rewrite_urls(ob_get_contents());
ob_end_clean();
echo $contents;
global $dbg_starttime;
}

//
// end keyword urls mod
//


#
#-----[ OPEN ]------------------------------------------
#

/templates/THE TEMPLATE YOUR USING/overall_footer.tpl

#
#-----[ FIND ]------------------------------------------
#

Powered by <a>phpBB</a> {PHPBB_VERSION} © phpBB Group

#
#-----[ REPLACE WITH]------------------------------------------
#

Powered by <a>phpBB</a> {PHPBB_VERSION} © phpBB Group <a>SEO toolkit © 2004-2005 webmedic</a>


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


and .htaccess code

Code:RewriteEngine On
#this may cause issues with subdirs and so I have not enabled it.
#replace "community" directory with your forum subfolder
RewriteBase /community/

RewriteRule [.]*-vf([0-9]*) index.php?%{QUERY_STRING}&f=$1
RewriteRule [.]*-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1
RewriteRule [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1
RewriteRule [.]*-vc([0-9]*) index.php?%{QUERY_STRING}&c=$1
RewriteRule [.]*-ac([0-9]*) album_cat.php?%{QUERY_STRING}&cat_id=$1
RewriteRule [.]*-at([0-9]*) album_thumbnail.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apic([0-9]*) album_pic.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apm([0-9]*) album_picm.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-full-asp([0-9]*) album_showpage.php?full=&pic_id=$1
RewriteRule [.]*-asp([0-9]*) album_showpage.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-aper([0-9]*) album_personal.php?%{QUERY_STRING}&user_id=$1
RewriteRule [.]*-dc([0-9]*) dload.php?%{QUERY_STRING}action=category&cat_id=$1
RewriteRule [.]*-df([0-9]*) dload.php?%{QUERY_STRING}action=file&file_id=$1
RewriteRule [.]*-kbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-kba([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-kbsmp kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-kbstr kb.php?mode=stats&stats=toprated
RewriteRule [.]*-kbsl kb.php?mode=stats&stats=latest
RewriteRule [.]*-pbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-pa([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-psmp kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-pstr kb.php?mode=stats&stats=toprated
RewriteRule [.]*-pbsl kb.php?mode=stats&stats=latest
RewriteRule [.]*-wl([0-9]*) weblog.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-wa([0-9]*) weblog_allentries.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-wf([0-9]*) weblog_friends.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-we([0-9]*) weblog_entry.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-wc([0-9]*) weblog_contributors.php?%{QUERY_STRING}&w=$1
RewriteRule [.]*-wr([0-9]*) weblog_rss.php?%{QUERY_STRING}&w=$1



unfortunately this mod will work only with ISO-8859-1
my language incoding is UTF-8
is it possible to change this mod for UTF-8 encoding ?
thanks
0 Replies
 
HoTWiReZ
 
  1  
Wed 10 May, 2006 05:53 pm
Using rewrite with IIS 6 and ISAPI_rewrite
I'm trying to install this for an IIS installation, particularly the mod_rewrite part, using ISAPI_rewrite. I was wondering what the purpose of the first rule you have was:
Code:RewriteRule ^forum.* index.php [L,NC]

Can anyone tell me what this does in plain english? I'm having limited success with this, and will post the mod code for IIS if I can get the rewrite part to work..

What I've done so far, is to make the rules static, like
Code:RewriteRule /forum/forum-([0-9]*).* /forum/viewforum.php?f=$1 [L,I]

This rule passes the tests when using the regular expression test tool. The problem seems to be coming from the first rule, because if I replace that rule with this:
Code:RewriteRule /forum/forum.* /forum/index.php [L,I]

then it makes it so that every link you click on the forum index as a guest takes you back to the forum index..

Anyone?

Edit: I just removed the line and everything appears to work.. Here's what I did, including the rest of the rewrite mod, in the proper context. Note, you must install ISAPI_rewrite first, and I am using the Lite version, so changes made here will be global for any IIS server. Also, any changes made to httpd.ini must be followed by running iisreset /restart at the command prompt for the changes to be effective. (/forum/ is my forum folder, so you will need to replace occurrences of this in the httpd.ini and robots.txt for yours with the correct folder name)

Code:#
#-----[ OPEN ]------------------------------------------
#

includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#

//
// Generate logged in/logged out status
//

#
#-----[ AFTER, ADD ]------------------------------------------
#

if ( !$userdata['session_logged_in'] )
{
ob_start();
function replace_for_mod_rewrite(&$s)
{
$urlin =
array(
"'(?<!/)viewforum.php\?f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewforum.php\?f=([0-9]*)&mark=topics'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&watch=topic*'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&unwatch=topic*'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&highlight=*'",
"'(?<!/)viewforum.php\?f=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=previous'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=next'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&vote=viewresult'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&highlight=([a-zA-Z0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)'",
"'(?<!/)viewtopic.php&p=([0-9]*)'",
"'(?<!/)viewtopic.php\?p=([0-9]*)'",
);
$urlout = array(
"topic-\\1-\\2-\\3.html",
"mark-forum\\1.html",
"updates-topic\\1.html",
"stop-updates-topic\\1.html",
"about\\1.html&highlight=\\2",
"forum-\\1.html",
"ptopic\\1.html",
"ntopic\\1.html",
"view-poll\\1-\\2-\\3.html",
"about\\1-\\2-\\3-\\4.html",
"about\\1.html",
"about\\1-\\2.html",
"about\\1.html",
"post-\\1.html",
"post-\\1.html",
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}
}

#
#-----[ OPEN ]------------------------------------------
#

includes/page_tail.php

#
#-----[ FIND ]------------------------------------------
#

$db->sql_close();

#
#-----[ AFTER, ADD ]------------------------------------------
#

if ( !$userdata['session_logged_in'] )
{
$contents = ob_get_contents();
ob_end_clean();
echo replace_for_mod_rewrite($contents);
global $dbg_starttime;
}

#
#-----[ OPEN ]------------------------------------------
#

C:\Program Files\Helicon\ISAPI_Rewrite\httpd.ini

#
#-----[ FIND ]------------------------------------------
#

RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]

#
#-----[ AFTER, ADD ]------------------------------------------
#

# RewriteRule /forum/forum.* /forum/index.php [L,I]
RewriteRule /forum/post-([0-9]*).html&highlight=([a-zA-Z0-9]*) /forum/viewtopic.php?p=$1&highlight=$2 [L,I]
RewriteRule /forum/post-([0-9]*).* /forum/viewtopic.php?p=$1 [L,I]
RewriteRule /forum/view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* /forum/viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,I]
RewriteRule /forum/about([0-9]*).html&highlight=([a-zA-Z0-9]*) /forum/viewtopic.php?t=$1&highlight=$2 [L,I]
RewriteRule /forum/about([0-9]*).html&view=newest /forum/viewtopic.php?t=$1&view=newest [L,I]
RewriteRule /forum/about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /forum/viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,I]
RewriteRule /forum/about([0-9]*)-([0-9]*).* /forum/viewtopic.php?t=$1&start=$2 [L,I]
RewriteRule /forum/about([0-9]*).* /forum/viewtopic.php?t=$1 [L,I]
RewriteRule /forum/about([0-9]*).html /forum/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,I]
RewriteRule /forum/mark-forum([0-9]*).html* /forum/viewforum.php?f=$1&mark=topics [L,I]
RewriteRule /forum/updates-topic([0-9]*).html* /forum/viewtopic.php?t=$1&watch=topic [L,I]
RewriteRule /forum/stop-updates-topic([0-9]*).html* /forum/viewtopic.php?t=$1&unwatch=topic [L,I]
RewriteRule /forum/forum-([0-9]*).html /forum/viewforum.php?f=$1 [L,I]
RewriteRule /forum/forum-([0-9]*).* /forum/viewforum.php?f=$1 [L,I]
RewriteRule /forum/topic-([0-9]*)-([0-9]*)-([0-9]*).* /forum/viewforum.php?f=$1&topicdays=$2&start=$3 [L,I]
RewriteRule /forum/ptopic([0-9]*).* /forum/viewtopic.php?t=$1&view=previous [L,I]
RewriteRule /forum/ntopic([0-9]*).* /forum/viewtopic.php?t=$1&view=next [L,I]


#
#-----[ OPEN ]------------------------------------------
#

robots.txt

Disallow: forum/post-*.html$
Disallow: forum/updates-topic.html*$
Disallow: forum/stop-updates-topic.html*$
Disallow: forum/ptopic*.html$
Disallow: forum/ntopic*.html$

#
#-----[ OPEN ]------------------------------------------
#

includes/functions.php

#
#-----[ FIND ]------------------------------------------
#

if (!empty($db))
{
$db->sql_close();
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

if ( !$userdata['session_logged_in'] )
{
if (stristr($url, 'http://')) {
header('Location: ' . $url);
exit;
}
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Please let me know if this doesn't work properly.
0 Replies
 
FredrikMH
 
  1  
Fri 12 May, 2006 04:34 am
I would like to thank you for providing these SEO-optimaztions for the phpbb forum. I'm currently using it and it seems to be working good. However I have one question and I also have something to add to the mod.

First why are the links named as "about" <- what does that word acctually do? For what reason is it there?

What I have read you do not want any URLs posted on this forum. The reason I don't know for sure but I guess it's the same reason I have. As a forum owner and site owner you can not control which links that members post in the forum. If you trick google to crawl your forums, you should also have in mind that a link to a website that google dislike a lot could lead to a penalty in the SERPs.

So what options do you have? You could tell your moderators to remove all links but what would a forum be without links? The best solution to this problem is to add rel="nofollow" on all links posted by members.

Quote:

If Google sees nofollow as part of a link, it will:

NOT follow through to that page.
NOT count the link in calculating PageRank link popularity scores.
NOT count the anchor text in determining what terms the page being linked to is relevant for.


This is a good way to tell google that you (as a site owner) did not post that link and can't guarantee it's content or quality. Actually it's perfect for forums.

You can read more about nofollow here:
blog.searchenginewatch.com/blog/050118-204728

It seems like i cant post tags in the code area and therefor I have a problem to share my changes to you
But you can add the rel="nofollow" in these files and then you are ready to go:
includes/bbcode.php in function make_clickable()
templates/subsilver/bbcode.tpl

It's possible that someone else have already posted these changes but I'm to lazy too read the 146 pages. Sorry about that Smile
0 Replies
 
tracy457
 
  1  
Fri 12 May, 2006 07:43 pm
Hi,
I have recently had to move hosts and I have set up again the forum with the SEO MOD, but part of it is not working right. Sad

At the old host, search engines crawled the forum daily and I could see all the pages that they looked at. At the new host the search engines just look at the index.php page and stop.

I checked the site in several search engine simulators and found a problem.

Pages at the old forum looked like this "forum-name.host.com/phbb2/about439.html" in the actual search engine pages, simulators and the actual forum.

Pages at the new forum look like this "host.com/forum-name/about439.html" at the actual forum, but in the simulators they look like this "host.com/about439.html",
which will give 404 errors.

Also the old forum was using 2.019 phpBB and the new one uses 2.020, don't know if that makes a difference?

I checked another site at my host "host.com/another-site/" in the simulators and they index correctly.

Would it be a problem in the mod rewrite or SEO code that I have put in incorrectly that would cause this problem? I did check through it all and it all looked ok and the forum when viewed as guest does work correctly showing each page viewed as .html and not .php?

Has anybody else had any problems like this? as I'm completely stumped why it does not work. Confused

[EDIT]
This was really bugging me so I uninstalled the MOD and indexed the forum again... which gave me the same results. I even made another folder with 4 basic pages in it, an index.php and with 3 links and that did not work, so the problem is with my host and not the SEO MOD.

Still friggin weird though Confused
0 Replies
 
tracy457
 
  1  
Sat 13 May, 2006 11:17 am
I found out what the problem is now. For forums that are located at some free hosts and the accounts are user names which look like this "host.com/forum-name/index.php" your site will not get indexed correctly unless some other changes are made. If you own your own domain or you have an account with a host that gives it's users subdomains, "forum-name.host.com/index.php", it will work fine.

If you are not sure what type of account you have I suggest you try 2 or 3 of the search engine simulators ( Google "search engine simulators" there are loads) and see how your current pages are indexed. What you are looking for are links on your site which have been written as local links, e.g "page.htm" or "folder/page.htm" and not as "host.com/forum-name/page.htm". If they appear as "host.com/page.htm" and not as "host.com/your-account/page.htm" then you need to make some other changes.

I don't know what the best solution is for this? so am going to try some different things. 1) Try a url forwarding service that allows any page after it's name to work. 2) Change all the forum links to full url's. 3) Use htaccess to change the urls.

Does anybody have any ideas on this and what would be the best way to go about it?
0 Replies
 
 

Related Topics

SEO - Going from 0 PR on up - Discussion by jespah
How Rich Pins work ??? - Question by OnceUponAtime
Need a bit of Google advice - Question by bible quizzer
Google Indexing Issue - Question by brainstudioz
Bing Search results - Discussion by iankyra
What is best way for Off-Page seo in 2017? - Question by honesttravel1
 
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 05/04/2024 at 08:41:57