9
   

phpBB Search Engine Optimization - Sessions, static ( SEO )

 
 
ZiadT
 
  1  
Wed 23 Jun, 2004 05:52 am
I installed it and all the links have 404 Errors. Also I notice it's only for unlogged users ... It would be usefull to have it for logged users!
0 Replies
 
sanmiguel
 
  1  
Thu 24 Jun, 2004 12:00 am
Help with static URLs
First of all Craven, thanks for a very well thought out mod.

I installed the Static URL mod alone without the SEO mod. Everything works except the View Previous Topic and View Next Topic links. Also the numerical links that are used to navigate topics and forums that exceed a single page are broken. Clicking on any of these links causes the page to refresh, but it does not change. I'm using PHPBB 2.0.6. Any suggestions?
0 Replies
 
Craven de Kere
 
  1  
Thu 24 Jun, 2004 12:24 am
Re: login problems
sandiego wrote:
Everything seems to be set up now and done just as instructed and i get login problems. Everything looks GREAT! but when login (or logout), it has a
Quote:
The page cannot be found
404 error. It DOES log me in and out if I get back to the page I was on (it shows I am logged in or out at the top) Any thoughts?Has anyone seen anything like this? Comments appreciated.
Thankx!!!


Well, as you can see from this site it does work without 404's. I'm not sure what the problem can be for you. If you PM me a link I can have a look but I doubt I will be able to tell from a mere peek and I probably won't have time to audit all the code.

ZiadT wrote:
Craven de Kere wrote:
Note: You must have Apache and mod_rewrite for the static URLs.


How can I enable these on my server ?


This is a server configuration that you should ask your host or server administrator to enable if it is not currently enabled.

Webby wrote:
Basically what I'm asking is whether or not i tis possible to have the mod_rewrite functioning in logged in mode as well as logged out.


It can be done, but right now the rewrite rules are not comprehensive enough to handle all instances of SIDs in URLs (meaning users who do not enable cookies have to keep logging in over and over) and some features and mods would not work well.

My shortcut was to do this only for guests.

I plan to write a complete solution but have not yet done so for two reasons. One is limitations on my time, and the other is that with phpbb 2.2.0 I believe the URLs will change and I am saving some of the more intense mod work I have planned for that version to avoid having to repeat work.

sanmiguel wrote:
I installed the Static URL mod alone without the SEO mod. Everything works except the View Previous Topic and View Next Topic links. Also the numerical links that are used to navigate topics and forums that exceed a single page are broken. Clicking on any of these links causes the page to refresh, but it does not change. I'm using PHPBB 2.0.6. Any suggestions?


The next and previous links are inherently detrimental for SEO and need to be removed from guest viewing altogether and the SEO mod does so. The static url mod is intended to be used only after application of that mod.

The reason the next and previous links are detrimental to SEO is because depending on the order of the topics they change, and if a search engine indexes it by the time people are clicking through it might be going to an entirely different topic.

If the search engine decides to index the next or previous page instead of the thread itself (any good search engine algo will either discard or downgrade (Google downgrades) a duplicate page.

So removing those are important and rewrite rules are not distributed because those links are expected to be removed beforehand.

As to the pagination problems, it works here and many other versions of static URL code for phpBB cause the problems you describe.

Perhaps you got it elsewhere from someone who mangled the code? I see that all the time. If you apply the SEO mod first and use code you get from here it should work just fine.
0 Replies
 
Craven de Kere
 
  1  
Thu 24 Jun, 2004 12:29 am
Eistee,

I just had a quick peek at your changes, they look like a smart addition and I'll eventually audit and implement the code.

Maybe I'll go ahead and do SIDs and make the static pages for logged in users as well, but if anyone else hacks at getting URL SIDs working flawlessly please post it here and save me the time I don't even have right now. ;-)
0 Replies
 
sanmiguel
 
  1  
Thu 24 Jun, 2004 05:10 pm
I have a question about the possibility that the Static URL mod could cause a site to be penalized by Google for duplicate content. My site currently has hundreds of pages listed in Google with their original PHPBB URLs. If I apply the Static URL mod, wouldn't Google penalize me for having identical pages with different URLs?

Also, I am considering making the Static URL mod apply to all users, whether they are logged in or not. Aside from the impact on users who don't use cookies, is there any down side to this approach?
0 Replies
 
Craven de Kere
 
  1  
Thu 24 Jun, 2004 05:18 pm
Google doesn't penalize the site, what they do is downgrade the page with the least backlinks to a "supplemental result".

We had almost 200,000 pages in google before we switched to static URLs.

The page rank for the pages will eventually transfer (actually Google doesn't rank dynamic pages too well so the static mod will cause a PR spread throughout the site).

Making the static URLs for logged in users might cause some minor problems other than the cookies, I haven't really looked into it.
0 Replies
 
sportstoto3368
 
  1  
Sat 26 Jun, 2004 01:09 am
Confirmation of SID code
I have download and see your MOD, it's cool. Firstly, i want to have a try on ONLY the Remove SID , but your file stated all optimization in one file, so i need to confirm that--- is this the only code related to remove sid, thanks.


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

includes/sessions.php

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

$SID = 'sid=' . $session_id;

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

if ( $userdata['session_user_id'] != ANONYMOUS ){
$SID = 'sid=' . $session_id;
} else {
$SID = '';
}
0 Replies
 
Craven de Kere
 
  1  
Sat 26 Jun, 2004 02:22 am
Re: Confirmation of SID code
sportstoto3368 wrote:
is this the only code related to remove sid


Yes.
0 Replies
 
ibolui
 
  1  
Mon 28 Jun, 2004 08:07 am
some problems
Hi guys, I have installed most of the script but noticed some errors. When I change the following instruction, I can no longer view the avatar and other things.

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

if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )

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

if ( $userdata['session_logged_in'] && $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] )

When I change the following, I cant view the gender mod that I have installed.

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

if ( $poster_id != ANONYMOUS )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");

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

if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");

Are these 2 changes important? If yes, how to fix it to work 'properly'? Thanks!
0 Replies
 
Craven de Kere
 
  1  
Mon 28 Jun, 2004 08:54 am
Those are intended to remove the avatars signatures and user details for guest views.
0 Replies
 
ibolui
 
  1  
Mon 28 Jun, 2004 01:26 pm
hahaa ic...no wonder all those things disappear. Thanks!
0 Replies
 
someone22
 
  1  
Wed 30 Jun, 2004 06:31 am
HTTP 404, file not found error!!
Phew,
Just finished reading through 22 pages of previous questions trying to find someone who had the same problem as me! Smile

Many Thanks Carven, for a great mod.

Ok, here is the problem.
The Session removal part worked great.

But running the mod from the second one mod rewrite resulted in a strange result.
The links to the forums all took the form
www.my*domain*name*here.com/forum/forum-1.html
and so on..

But, when i click on this link, I recieve a File Not Found error (404)!
I think the forum code itself was modified, but the .htaccess had something wrong??? I am not very good at this file (read: I don't understand ANYTHING about it!! Smile)

My forum is in www.my*domain*name*here.com/forum/ and not /forums/ as Carven did it here for able2know. Does it make a difference?

Where should i put the .htaccess file? I put it in the /forum directory. Is that correct?

Thanks very much for the great work, and the great help...
0 Replies
 
Craven de Kere
 
  1  
Wed 30 Jun, 2004 09:55 am
Re: HTTP 404, file not found error!!
someone22 wrote:

Where should i put the .htaccess file? I put it in the /forum directory. Is that correct?


Yes.

You either did something wrong on this step or your host does not support mod_rewrite
0 Replies
 
unreal
 
  1  
Wed 30 Jun, 2004 11:57 am
Hey.
I installed the mod without any apparent problems.
However, the mod rewrite part doesnt seem to be working.
I created .htaccess and uploaded it to the forum's folder. Mod Rewrite is enabled on the server. I followed the instructions as shown in the phpBB static URLs mod_rewrite 1.0.0.txt. However, the urls in the forum are still .php, eg viewtopic.php?t=3
What do I do?
.htaccess is the following

Code:
RewriteEngine On
RewriteRule ^forum.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) http://www.psp-forum.com/viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* http://www.psp-forum.com/viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* http://www.psp-forum.com/viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) http://www.psp-forum.com/viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest http://www.psp-forum.com/viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* http://www.psp-forum.com/viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* http://www.psp-forum.com/viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* http://www.psp-forum.com/viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html http://www.psp-forum.com/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* http://www.psp-forum.com/viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* http://www.psp-forum.com/viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* http://www.psp-forum.com/viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html http://www.psp-forum.com/viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* http://www.psp-forum.com/viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* http://www.psp-forum.com/viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* http://www.psp-forum.com/viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* http://www.psp-forum.com/viewtopic.php?t=$1&view=next [L,NC]
0 Replies
 
unreal
 
  1  
Wed 30 Jun, 2004 12:33 pm
Ah, it does work Smile
I looked at the code and realised it only takes affect if you are not logged in, ie a guest, or googlebot Smile
I removed the If statement anyway just to see it in action all the time.
0 Replies
 
nookie123
 
  1  
Sun 4 Jul, 2004 08:59 am
Hi, I saw this on yr mod rewrite 1.0.0

"makes static URLs (only for guests) for phpBB"

some websites optimised thier pages for not only guests but members as well.

why make static urls for members ?
Do you know why ?
0 Replies
 
unreal
 
  1  
Sun 4 Jul, 2004 02:09 pm
The reason is for linkage. If it was only done for guests, then the members will have a PHP url. If they link to that page from somewhere, they will be linking to the PHP page, and if it contains a variable, is not good for the bots.
For this reason, mod rewrite for members too, so that they link to the HTML pages, and search engines can crawl through the links.
0 Replies
 
nookie123
 
  1  
Mon 5 Jul, 2004 01:52 am
I see what you mean. Will this approach be much more effective than just making static urls for guests only?
or they are abt the same..?
0 Replies
 
Craven de Kere
 
  1  
Mon 5 Jul, 2004 02:36 am
The downside is that some users (users who do not allow cookies) will be logged out on every click.

Eventually SIDs in the URL will be handled with the mod_rewrite and at that time the mod will be changed to use static urls for both logged in and logged out users.
0 Replies
 
sai
 
  1  
Mon 5 Jul, 2004 12:03 pm
The able2knowjump
aka
a2kjump looks interesting can you share with us
and i have a extra Q.
after mod SEO all my domain recache at googles is without words, do you know the reason?
example
[ mydomain(dot)com ]
similar Page

all becomes like that after installing.
Please give some advise.

i tried on a2k retriving your robots.txt and was redirect away
edited.....forget 2 mention
after installing SEO few months ago the listing [ cache ] link was remove too
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/08/2024 at 06:45:55