9
   

phpBB Search Engine Optimization - Sessions, static ( SEO )

 
 
bobbyx75
 
  1  
Mon 30 Aug, 2004 01:28 pm
Question, in the install file you say this:

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

.htaccess

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

RewriteEngine On
RewriteRule ^forums.* 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]


Do I have to edit the .htaaccess located in my site's root directory, or create an .htaaccess file in my phpBB2 root? Also, will this work with a 2.03 forum? Thanks
0 Replies
 
Craven de Kere
 
  1  
Mon 30 Aug, 2004 02:17 pm
Quote:
Do I have to edit the .htaaccess located in my site's root directory


No

Quote:
or create an .htaaccess file in my phpBB2 root?


Yes

Quote:
Also, will this work with a 2.03 forum?


I think so. I developed my code far past that version and have not tested it though.

Quote:
Thanks


My pleasure
0 Replies
 
Joe Belmaati
 
  1  
Tue 31 Aug, 2004 12:43 am
nacho45 wrote:
Hey there!

I've been using parts of your Mod for quite awhile now to great success.

I just realized though, that all my pages and topics that go to Page 2 and beyond are no longer accessible. In other words, If you hit 2, 3, or Next or whatever, it just goes back to the same page.

Which part of the code is the edit to fix this?

Thanks!
Are you using the Topic Display sort order MOD? If so, paddle back a few pages in this thread. No fix for it, I'm afraid - just some info on how to get the display sort order to "sort of work" BTW the topic display sort order MOD is not fully compliant with 2.0.10 but that is a different story. Sorry for the thread drift...
0 Replies
 
propagandhi
 
  1  
Tue 31 Aug, 2004 07:09 am
once again i ask...........is there going to be one written for phpbb ++ 1.3???

There are parts missing when i try to install this mod.
0 Replies
 
Defencetalk
 
  1  
Tue 31 Aug, 2004 09:45 am
Recently, users complaining about this error:

Code:phpBB : Critical Error

Error creating new session

DEBUG MODE

SQL Error : 1114 The table 'phpbb_sessions' is full

INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('43d9b22cd7142c625d83f40767be25e8', 1660, 1093966830, 1093966830, 'ca93a0a2', 0, 1)

Line : 152
File : /home/defence/public_html/forums/includes/sessions.php


Any idea why its happening. Its occuring more often after this mod installed.

thanks
0 Replies
 
zrock
 
  1  
Tue 31 Aug, 2004 09:58 am
Defencetalk wrote:

Code:phpBB : Critical Error
Error creating new session
DEBUG MODE
SQL Error : 1114 The table 'phpbb_sessions' is full


Any idea why its happening. Its occuring more often after this mod installed.


per phpbb Knowledge Base:

How to fix the dreaded 'phpbb_sessions' is full error

Also has information on HEAP and MyISAM tables, sessions and why the error occurs in the first place
0 Replies
 
Defencetalk
 
  1  
Wed 1 Sep, 2004 11:03 am
I don't know what is but suddenly I am getting more traffic to the forums. Installed the mod on aug 22nd (html links are already showing up in the searches). Looks like google is having a honeymoon. Very Happy

THANK YOU!!!
0 Replies
 
Olney
 
  1  
Wed 1 Sep, 2004 04:29 pm
What if
I'm not too familiar with using Mod rewrite but here's my situation.
Another script I use is also using Mod Rewrite.
I have to include boards directory so the board appears.
My directory for my phpbb is websitename/board/

This is the code I had already in the .htaccess file
Can anyone note what needs to be changed for the static HTML to work.
Quote:

RewriteEngine on
RewriteRule ^admin$ admin/index.php
RewriteRule ^admin/$ admin/index.php
RewriteRule ^board$ board/index.php
RewriteRule ^board/$ board/index.php


RewriteRule ^links/([a-z]+)/([0-9]+)$ link.php?action=$1&id=$2
RewriteRule ^links/([a-z]+)/([0-9]+)/$ link.php?action=$1&id=$2
RewriteRule ^links/([0-9]+)$ link.php?id=$1
RewriteRule ^links/([0-9]+)/$ link.php?id=$1

RewriteRule ^thread/([0-9]+)$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/([0-9]+)$ comments.php?id=$1&page=$2
RewriteRule ^thread/([0-9]+)/([0-9]+)/$ comments.php?id=$1&page=$2

RewriteRule ^([0-9]+)$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)$ index.php?action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/([0-9]+)/$ index.php?action=displaycat&catid=$1&page=$2

RewriteRule ^([-_/\+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1

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]



Any help is appreciated
Also I'm using PHPBB Plus...
Thanx
0 Replies
 
Craven de Kere
 
  1  
Wed 1 Sep, 2004 11:21 pm
Re: What if
Olney wrote:

Another script I use is also using Mod Rewrite.
Can anyone note what needs to be changed for the static HTML to work.


This should work, I haven't tested it (and don't intend to because I can't support other people's code beyond a certain point).


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]

RewriteRule ^admin$ admin/index.php
RewriteRule ^admin/$ admin/index.php
RewriteRule ^board$ board/index.php
RewriteRule ^board/$ board/index.php


RewriteRule ^links/([a-z]+)/([0-9]+)$ link.php?action=$1&id=$2
RewriteRule ^links/([a-z]+)/([0-9]+)/$ link.php?action=$1&id=$2
RewriteRule ^links/([0-9]+)$ link.php?id=$1
RewriteRule ^links/([0-9]+)/$ link.php?id=$1

RewriteRule ^thread/([0-9]+)$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/([0-9]+)$ comments.php?id=$1&page=$2
RewriteRule ^thread/([0-9]+)/([0-9]+)/$ comments.php?id=$1&page=$2

RewriteRule ^([0-9]+)$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)$ index.php?action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/([0-9]+)/$ index.php?action=displaycat&catid=$1&page=$2

RewriteRule ^([-_/\+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1
0 Replies
 
FoulFoot
 
  1  
Fri 3 Sep, 2004 06:49 pm
This may have been covered before, and if so, I apologize. This thread is getting enormous!

I'm having some problems with my robots.txt file in conjunction with this mod. The intention is to remove all dynamically-generated URLs, to include all the "viewtopic.php", "search.php", "posting.php", etc URLs. However, the way you've constructed the robots.txt, I don't think this is occurring.

Example Line: Disallow: /forums/ptopic*.html$

The robots.txt standard does not allow for wildcards. Therefore, most search engines will ignore these lines, or choke on them. Since this is a Google mod, and Google DOES allow for wildcards, you can leave the asterisks in... but the dollar sign will be ignored by Google; it should be replaced by an asterisk, if that's your intention.

More importantly here, using partial URLs in robots.txt does not screen out dynamically-generated URLs. I don't know why. My robots.txt has this:

Disallow: /forums/posting.php

...but Google is still happily indexing such URLs as "/forums/posting.php?mode=quote&p=7799".

According to the Google FAQ, to disable indexing of dynamically generated pages, add this:

User-agent: Googlebot
Disallow: /*?

Note that you should ONLY do this if you've implemented the URL-rewrite mod.

To verify your robots.txt is kosher, run it through the validator here:

http://www.searchengineworld.com/cgi-bin/robotcheck.cgi

I'm certainly not an expert in this, so all comments welcome. I initially started looking into the problem because the mod seems to be working fine, but Google is still indexing every dynamic URL it can find on my site.

Regards,

Foul
0 Replies
 
Craven de Kere
 
  1  
Fri 3 Sep, 2004 08:32 pm
Foul,

I can write up some good robot.txt code when I get some time.

Thing is, I am wary of posting it, because silly mistakes (on the part of the implementor) can get whole forums restricted and I don't want to deal with those support requests (which I expect might contain a healthy dose of frustration and a sense of urgency to boot).
0 Replies
 
seoexperts
 
  1  
Fri 3 Sep, 2004 11:41 pm
Edit: Problem found.
New Question: Where can I find new phpbb skins and if I use any, what do I need to do to preserve my mod_rewrite and SEO MOD by able2know ?
0 Replies
 
zrock
 
  1  
Sat 4 Sep, 2004 12:00 am
check out the style gallery on phpbb - they have a nice interactive tool that lets you see how different themes look, etc.

to preserve the SEO mod, you would need to re-apply the parts referring to templates to the new theme, i.e templates/subsilver/viewtopic_body.tpl, templates/subsilver/overall_header.tpl, templates/subsilver/index_body.tpl, and templates/subsilver/overall_footer.tpl (follow the mod instructions for these parts, replacing "subsilver" with the name of the new theme.
0 Replies
 
FoulFoot
 
  1  
Sat 4 Sep, 2004 06:01 am
Craven de Kere wrote:
Foul,

I can write up some good robot.txt code when I get some time.

Thing is, I am wary of posting it, because silly mistakes (on the part of the implementor) can get whole forums restricted and I don't want to deal with those support requests (which I expect might contain a healthy dose of frustration and a sense of urgency to boot).


Understood. I guess my post had more to do with a question: will indexing too many pages harm your Google ranking? In my case, Google is running around indexing search.php strings and reply postings.

Incidentally, I took a look at what Google's doing to Able2Know.com... the same thing it's doing to mine. Indexing all sorts of crap. I would think results dilution would outweigh any possible benefit to this.

Foul
0 Replies
 
seoexperts
 
  1  
Sat 4 Sep, 2004 01:33 pm
Does everything remains the same ? I mean the same snippets of code needs to be search and replaced ? If yes, GREAT. You guys are great and I will gladly donate to Ablw2Know for this great help. I am sure my donation would be small compared to the value of the work your mod did for me.

Cheers. I will also keep a link to able2know.com from all my pages. Thanks Guys. I would have had paid a few hundred $$ to anyone for this mod_rewrite but your MOD helped me do it myself in less then 1hr. Thanks. You even saved me from buying a VB or IBP license Smile
0 Replies
 
zrock
 
  1  
Sat 4 Sep, 2004 09:08 pm
seoexperts wrote:
Does everything remains the same ? I mean the same snippets of code needs to be search and replaced ? If yes, GREAT.


Yes, the same snippets of code needs to be searched and replaced in the new template files. If the new template is based on subsilver, it will be the same, but may have a few things slightly different. By carefully reading what you are searching for, you should be able to locate the appropriate part if it's a bit different. Almost all of the ForumImage templates are based on subsilver, but there are alot of templates out there by various designers, so it may help to check out the designer's support forum for additional tips if the template you like is not based on subsilver, etc.
0 Replies
 
propagandhi
 
  1  
Mon 6 Sep, 2004 03:25 pm
could anyone write one for phpbb++1.3? It is based on phpbb 2.06, just with a load of mods installed and i cannot find certain parts of this mod to edit as the files are different!

is it possible?
0 Replies
 
propagandhi
 
  1  
Mon 6 Sep, 2004 03:25 pm
could anyone write one for phpbb++1.3? It is based on phpbb 2.06, just with a load of mods installed and i cannot find certain parts of this mod to edit as the files are different!

is it possible?
0 Replies
 
BellyBelly
 
  1  
Mon 6 Sep, 2004 10:48 pm
Since installing the mod (which has being going really well, thanks!) my moderators have told me of this problem:

"The TTC thread is creating a new page too eary ie we are only on a few pages of page 11 there and it has already created page 12. This also happened when we were on page 10. A few of the girls have complained because they are clicking the last page but getting the "no posts exist" error. Just wondering if there is something that can fix it. "

Anyone else had this problem and / or know how to fix it?
0 Replies
 
Craven de Kere
 
  1  
Tue 7 Sep, 2004 12:24 am
That is a database corruption bug that is not related to this mod.

Repair your database tables and it should go away.
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 11/26/2024 at 08:16:41