9
   

phpBB Search Engine Optimization - Sessions, static ( SEO )

 
 
Craven de Kere
 
  1  
Thu 24 Mar, 2005 11:16 am
robots.txt specifications are for the root of the domain only. Anywhere else is useless as spiders won't look for them anywhere except in the domain root.
0 Replies
 
sixpack
 
  1  
Sat 26 Mar, 2005 02:24 am
Thanks so much for this great mod package!!
I just wanted to post to say; Thank you very much all who are involved in this GREAT mod.. This is exactly what I have been looking to do, except that it is all in one!!! I cannot even begin to describe the sense of satisfaction that this has given me!.. I was allways at the top of SE listings but I allways found so many unwanted links in my listings. Now with these mods I can safely say that I can no longer expect this kind of unwanted links!!!!!!!!!!!!!!!!!! OMG I cannot even express my JOY in words.. but I will try.. TYTYTYTYTYTYT Greets to ALL that have put this together. YOU ROCK!! Very Happy Very Happy Very Happy Very Happy
0 Replies
 
mysticalwonders
 
  1  
Tue 29 Mar, 2005 01:31 am
I have had this mod installed for a while as it was a great success in getting tons of my content listed on google bringing in tons of visitors to my forum.

However I don't know what happened today but when I just checked my site and the rewrite-mod does not seem to be working again. It was working a few hours ago! This is strange. No html pages are no longer working and the only way a person can get past the index.php is to sign up and log in..

It's a nightmare!

I am having my php person check it out but what steps can I take to ensure I do not loose the already google & msn indexed content?

If I do loose the already generated html pages for guests/search engines can you assume how long google will take to re-index my content and drop those already indexed html files. Google & Msn crawls my site every day..and does deep crawls every 2-3 weeks from what I see in the logs.

Additionally should I install a mod that will make (about.*) into keywords-enriched.html files?

Are you planning to integrate this into an update for the seo mod? Is it worth it?
0 Replies
 
Craven de Kere
 
  1  
Tue 29 Mar, 2005 08:40 pm
mysticalwonders wrote:

However I don't know what happened today but when I just checked my site and the rewrite-mod does not seem to be working again. It was working a few hours ago! This is strange. No html pages are no longer working and the only way a person can get past the index.php is to sign up and log in..


There is a problem with apache's mod_rewrite module then. It may be as simple as having moved or deleted the .htaccess file.

Quote:
I am having my php person check it out but what steps can I take to ensure I do not loose the already google & msn indexed content?


Anything you could do would likely involve mod_rewrite so you really just need to get that sorted.

Quote:
If I do loose the already generated html pages for guests/search engines can you assume how long google will take to re-index my content and drop those already indexed html files. Google & Msn crawls my site every day..and does deep crawls every 2-3 weeks from what I see in the logs.


They usually won't drop them right away.

Quote:
Additionally should I install a mod that will make (about.*) into keywords-enriched.html files?

Are you planning to integrate this into an update for the seo mod? Is it worth it?


keywords in the url can help SEO, but every last keyword url mod I have seen have numerous bugs.

I do plan to make such a mod (I'd been waiting for the next phpbb version) but only when I have time to release bug free code.
0 Replies
 
BoZaR
 
  1  
Sat 2 Apr, 2005 02:45 pm
hey craven those tweaks :
Quote:
18) Make Auth list on viewtopic.php invisible to search engines (Craven de Kere)
19) Make the previous and next topic links invisible to search engines (Craven de Kere)


refers to this no ?
Code:#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/viewtopic_body.tpl

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

{postrow.POSTER_POSTS}

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

<a href="search.php?search_author={postrow.POSTER_NAME}" class="postdetails">{postrow.POSTER_POSTS}</a>

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

<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------
#
<td align="right" valign="top" nowrap="nowrap">
<!-- BEGIN switch_user_logged_in -->
{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span>
<!-- END switch_user_logged_in -->
</td>

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

<span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a>  </span>

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

<!-- BEGIN switch_user_logged_in -->
<span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a>  </span>
<!-- END switch_user_logged_in -->


what are Auth list ?

thx
0 Replies
 
Craven de Kere
 
  1  
Sat 2 Apr, 2005 03:14 pm
The code does those two things as well as links the member post count to the search for the member's post.

The auth list is:

Quote:

You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
You can moderate this forum
0 Replies
 
adrianling
 
  1  
Sun 3 Apr, 2005 12:34 pm
php errors after creating the .htaccess file
Hi,

Hope someone can shed some light where I've gone wrong here -
After I've created the .htacess, I get the following error:

It looks I get the path wrong somewhere ... but don't know where.
phpBB is installed on the 'forum' subfolder off the root directory.

------------------------------------
Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/htdocs/www/index.php on line 25

Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/htdocs/www/index.php on line 25

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/htdocs/www/index.php on line 25

Warning: main(./common.): failed to open stream: No such file or directory in /home/htdocs/www/index.php on line 26

Warning: main(./common.): failed to open stream: No such file or directory in /home/htdocs/www/index.php on line 26

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/htdocs/www/index.php on line 26

Fatal error: Call to undefined function: session_pagestart() in /home/htdocs/www/index.php on line 31
------------------


*Edit*
The error occurs when .htaccess is at the root directory, i.e. /home/htdocs/www/

But if I put the .htaccess at /home/htdocs/www/forum/ THEN, there's no
error, but I don't get the static pages or the url re-writes.

QUESTION:
=======
Where should I put the .htaccess file? In the phpBB folder or the webroot folder?



Any help or tips is much appreciated.

Thank you.
Adrian
0 Replies
 
adrianling
 
  1  
Sun 3 Apr, 2005 01:27 pm
Update ... just found something "strange" -

If I'm logged in, then the re-write doesn't work - I get the SID, and other stuff in the URLs.

But if I log out, then the mod-rewrite works - all the urls appears to be static.

Did I do something wrong in applying the seo hack?

Thanks,
Adrian
0 Replies
 
Craven de Kere
 
  1  
Sun 3 Apr, 2005 03:05 pm
No, that's how it's supposed to work as search engines won't log in.
0 Replies
 
adrianling
 
  1  
Sun 3 Apr, 2005 10:37 pm
Ah ... so that's it! Thank you so much Craven!

Appreciate it lots.

btw, I just saw the board description for newbies - "just hatched" - Very Happy


Cheers,
Adrian
0 Replies
 
adrianling
 
  1  
Mon 4 Apr, 2005 02:07 am
Hi Craven,

Err ... need help again ... the hack worked on my test phpbb installation, but when I applied it to the real forum, it didn't work.

When I click on the forum link, e.g.
/forum/forum-6.html

Instead of going into that forum category, it just refreshes the page
and display the main page again, e.g.

/forum/index.php

(although the url in the browser shows: /forum/forum-6.html, the page
that's being shown is the 'index.php' page)

If you want the forum url, I can pm you the link.

Many thanks!

Best regards,
Adrian
0 Replies
 
Craven de Kere
 
  1  
Mon 4 Apr, 2005 07:23 pm
I don't need the link, your problem can probably be solved if you read this thread and try to determine what is wrong yourself:

http://www.able2know.com/forums/viewtopic.php?t=44896
0 Replies
 
adrianling
 
  1  
Wed 6 Apr, 2005 10:44 pm
Hi Craven,

Thanks for url - I'll go over the codes again with a fine tooth comb.

Best regards,
Adrian
0 Replies
 
BoZaR
 
  1  
Thu 7 Apr, 2005 02:51 pm
hey Craven i have got a problem with google i have only 37 pages indexed only some of my topics are indexed ( ~4) the other are repetitive access to login.php..
can you resolve it ?
I use those URL rewrinting:
Code:#
#-----[ OUVRIR ]---------------------------------------------
#
includes/sessions.php

#
#-----[ TROUVER ]---------------------------------------------
# vers la ligne 139
$sql = "UPDATE " . SESSIONS_TABLE . "
SET session_user_id = $user_id, session_start = $current_time, session_time = $current_time, session_page = $page_id, session_logged_in = $login
WHERE session_id = '" . $session_id . "'
AND session_ip = '$user_ip'";

#
#-----[ REMPLACER PAR ]---------------------------------------
#
$sql_ip = $user_id == ANONYMOUS ? " AND session_ip = '$user_ip'" : '';
$sql = "UPDATE " . SESSIONS_TABLE . "
SET session_ip = '$user_ip', session_start = $current_time, session_time = $current_time, session_page = $page_id, session_logged_in = $login
WHERE session_id = '" . $session_id . "' $sql_ip
AND session_user_id = '$user_id'";

#
#-----[ TROUVER ]---------------------------------------------
# vers la ligne 186
$SID = 'sid=' . $session_id;

#
#-----[ REMPLACER PAR ]---------------------------------------
#
$SID = $user_id > 0 ? 'sid=' . $session_id : '';

#
#-----[ TROUVER ]---------------------------------------------
# vers la ligne 256
$SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : '';

#
#-----[ REMPLACER PAR ]---------------------------------------
#
$SID = $userdata['user_id'] > 0 ? (($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : '') : '';

#
#-----[ TROUVER ]---------------------------------------------
# vers la ligne 303
//
// If we reach here then no (valid) session exists. So we'll create a new one,
#
#-----[ AVANT, AJOUTER ]---------------------------------------
#
elseif(empty($sessiondata))
{
// try to login guest
$sql = "SELECT u.*, s.*
FROM " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u
WHERE s.session_ip = '$user_ip'
AND s.session_user_id = " . ANONYMOUS . "
AND u.user_id = s.session_user_id
LIMIT 0, 1";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql);
}

$userdata = $db->sql_fetchrow($result);

if ( isset($userdata['user_id']) )
{
if ( $current_time - $userdata['session_time'] > 60 )
{
$sql = "UPDATE " . SESSIONS_TABLE . "
SET session_time = $current_time, session_start = $current_time, session_page = 0
WHERE session_id = '" . $userdata['session_id'] . "'";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error updating sessions table', '', __LINE__, __FILE__, $sql);
}
}
return $userdata;
}
}


Code:#
#-----[ OUVRIR ]------------------------------------------
#
includes/page_header.php


#
#-----[ TROUVER ]------------------------------------------
#
#

$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);

#
#-----[ APRES, AJOUTER ]------------------------------------------
#
ob_start();
function replace_mod_rewrite($s)
{
$urlin = array(
"'(?<!/)viewforum.php\?f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewforum.php\?f=([0-9]*)&mark=topics'",
"'(?<!/)viewforum.php\?f=([0-9]*)'",

"'(?<!/)viewtopic.php\?t=([0-9]*)&view=previous'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=next'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=newest'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&(?:amp;)watch=topic&(?:amp;)start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&(?:amp;)unwatch=topic&(?:amp;)start=([0-9]*)'",
"'(?<!/)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]*)&highlight=([a-zA-Z0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)'",
"'(?<!/)viewtopic.php\?p=([0-9]*)'");

$urlout = array(
"viewforum\\1-\\2-\\3.php",
"mforum\\1.php",
"forum\\1.php",

"ptopic\\1.php",
"ntopic\\1.php",
"newtopic\\1.php",
"stopic\\1-\\2.php",
"utopic\\1-\\2.php",
"ftopic\\1-\\2-\\3-\\4.php",
"ftopic\\1-\\2-\\3-\\4-\\5.php",
"ftopic\\1-\\2.php",
"setopic_\\1-\\2.html",
"ftopic\\1.php",
"sutra\\1.php");

$s = preg_replace($urlin, $urlout, $s);

return $s;
}

#
#-----[ OUVRIR ]------------------------------------------
#
includes/page_tail.php

#
#-----[ TROUVER ]------------------------------------------
#
$db->sql_close();

#
#-----[ APRES, AJOUTER ]------------------------------------------
#

$contents = ob_get_contents();
ob_end_clean();
echo replace_mod_rewrite($contents);
global $dbg_starttime;


#
#-----[ TROUVER ]------------------------------------------
#
$gzip_contents = ob_get_contents();
ob_end_clean();

#
#-----[ APRES, AJOUTER ]------------------------------------------
#


echo replace_mod_rewrite($contents);
global $dbg_starttime;


Code:
and this .htaccess
RewriteEngine On
RewriteRule ^forums.* /index.php
RewriteRule ^mforum([0-9]*).* /viewforum.php?f=$1&mark=topics
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* /viewforum.php?f=$1&topicdays=$2&start=$3
RewriteRule ^forum([0-9]*).* /viewforum.php?f=$1
RewriteRule ^ptopic([0-9]*).* /viewtopic.php?t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* /viewtopic.php?t=$1&view=next
RewriteRule ^stopic([0-9]*)-([0-9]*).* /viewtopic.php?t=$1&watch=topic&start=$2
RewriteRule ^utopic([0-9]*)-([0-9]*).* /viewtopic.php?t=$1&unwatch=topic&start=$2
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* /viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*).* /viewtopic.php?t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* /viewtopic.php?t=$1
RewriteRule ^ftopic([0-9]*).html /viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^setopic_([0-9]*)-([a-zA-Z0-9]*).* /viewtopic.php?t=$1&start=$2
RewriteRule ^sutra([0-9]*).* /viewtopic.php?p=$1
RewriteRule ^newtopic([0-9]*).* /viewtopic.php?t=$1&view=newest
0 Replies
 
AdamStone
 
  1  
Fri 8 Apr, 2005 10:43 am
Craven,

Are you planning on publishing a phpBB 3 SEO mod when it is released?
0 Replies
 
Craven de Kere
 
  1  
Fri 8 Apr, 2005 10:52 am
Yes
0 Replies
 
changeip
 
  1  
Wed 13 Apr, 2005 09:29 pm
ISAPI_REWRITE from helicon
I've been running phpBB on windows for a while, just found your site, spent 20 minutes and converted it over to your mod! Awesome.

For anyone interested, here is the ISAPI_REWRITE httpd.ini file that you can use on a windows machine in place of the .htaccess file for apache. This will enable you to make these mods on all phpBB forums hosted under Windows.

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


Sam

Edit (Moderator): URL Removed
0 Replies
 
haselhurst
 
  1  
Fri 22 Apr, 2005 04:26 am
Does Mod work for phpBB 2.0.14
Hi,
I have been reading my way through this long list of posts. Very interesting.
A few questions;

1. Is the latest mod version 2.0.0 (which I downloaded from link on first page of this long list of posts)?

2. Is this mod compatible with latest phpBB 2.0.14

3. Is it possible to remove session IDs for both non-logged in and logged in users.

4. Is there a mod that basically only allows Google to spider posts and not spider people's user profiles etc. (I am unsure exactly what pages the current mod allows to be spidered - but really only want actual posts / content pages spidered).

Sorry if any of these are stupid questions - i am new to phpBB, and know very little about coding language. I do have a pretty good understanding of what Google likes though, so respect what you are doing.
And I find it quite remarkable - the number of posts you have answered! Very nice of you!

Regards,
Geoff Haselhurst
0 Replies
 
Craven de Kere
 
  1  
Fri 22 Apr, 2005 09:30 am
All your questions = yes.

Re 3: removing sids for logged in users will mean users who don't use cookies have problems.

Re 4: Just use robots.txt to prevent spidering of profiles.
0 Replies
 
BoZaR
 
  1  
Fri 22 Apr, 2005 11:25 am
hello craven i found my problem but there is some word i d'ont understand...
Quote:

This is by far the most important keyword modification. The page title is the most important real estate for search engine optimization. This reduces the dilution by removing the site name from the title and the topics will now have pages with more relevant titles (at the cost of some site branding).


what is site branding ?

and those code:
Code:#
#-----[ FIND ]------------------------------------------
#

{postrow.POSTER_POSTS}

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

<a href="search.php?search_author={postrow.POSTER_NAME}" class="postdetails">{postrow.POSTER_POSTS}</a>


what are there for ?
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.09 seconds on 11/24/2024 at 06:48:25