sitemap --> google

Support for the phpBB2 SEO mods released in the phpBB2 SEO Toolikt forum.

Moderator: Moderators

sitemap --> google

Postby linus » Sun Dec 03, 2006 6:25 pm

Hello...I'm a little problem with google.

here :

Image

-http://www.forum-linux-italia.com/-fmp1.html :?:

-http://www.forum-linux-italia.com/forum-10.html&sid=10fd3a6fb809b6830c3b77810f680917 :?:

:?

My htaccess :

Code: Select all
Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^.+-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]

RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-map\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^.+-fmp([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^.+-fmp([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^.+-sc([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]

RewriteRule ^sitemaps\.xml$ /sitemap.php [L]
RewriteRule ^forum-sitemap-([0-9]+)\.xml$ /sitemap.php?fid=$1 [L]
RewriteRule ^sitemap-forum\.xml$ /sitemap.php?forum [L]

RewriteRule ^about([0-9]+)\.html$ /about.php
RewriteRule ^about.html$ /about.php

RewriteRule ^forum-([0-9]+)\.html$ /index.php
RewriteRule ^forum.html$ /index.php

RewriteRule ^Sitemap.php /sitemap.php


ADD-ON for problem :

Code: Select all
RewriteRule ^about([0-9]+)\.html$ /about.php
RewriteRule ^about.html$ /about.php

RewriteRule ^forum-([0-9]+)\.html$ /index.php
RewriteRule ^forum.html$ /index.php

RewriteRule ^Sitemap.php /sitemap.php


I have inserted this for others link does not find to you :cry:
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Advertisement

Postby dcz » Mon Dec 04, 2006 8:07 am

Don't worry about those too much.

But we're going to fix it anyway.

So the -fmp must be old URLs coming from back when you mx sitemap Installation was not fully working, most likely.

You should check a bit to find out if there is still such link in it, but I doubt.

For the old abl2know Rewriterules, in this post you'll find an example of working .htaccess for this.

The idea is to keep to old URLs working to allow the zero dupe, which I'll PM you right now, to redirect them.

This way, no more dupes, never.

;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby linus » Mon Dec 04, 2006 5:36 pm

One problem :

in the file viewtopic and viewforum I've the code :

Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $forum_name;
// www.phpBB-SEO.com SEO TOOLKIT END


delete?


Thank's...

Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$uri = seo_req_uri();
$start = ( is_int(intval($start)/intval($board_config['topics_per_page'])) ) ? $start : 0;
$url_chk = format_url($forum_row['forum_name']) . "-vf$forum_id" . ( ($start !=0) ? "-$start" : "" ) . ".html";
if ( ($mark_read == '') && !strpos($uri, $url_chk) && empty($HTTP_POST_VARS['topicdays']) && empty($HTTP_GET_VARS['topicdays']) ) {
   seo_redirect( PHPBB_URL . $url_chk );
}
// www.phpBB-SEO.com SEO TOOLKIT END


only this code?

My htaccess:

Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum-linux-italia\.com$ [NC]
RewriteRule ^(.*) http://www.forum-linux-italia.com/$1 [QSA,L,R=301]

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^.+-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]

RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-map\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^.+-fmp([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^.+-fmp([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^.+-sc([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]

RewriteRule ^sitemaps\.xml$ /sitemap.php [L]
RewriteRule ^forum-sitemap-([0-9]+)\.xml$ /sitemap.php?fid=$1 [L]
RewriteRule ^sitemap-forum\.xml$ /sitemap.php?forum [L]


EDIT:

Code: Select all
#
#-----[ BFORE, ADD ]------------------------------------------
# Here you have to set your real phpBB URL, trailing slash is required !

define('PHPBB_URL', 'http://www.example.com/phpBB/');

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


my code is :

Code: Select all
define('PHPBB_URL', '/');


ok? thank's :wink:
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Postby linus » Tue Dec 05, 2006 5:50 am

News :

Robots.txt = /post

I have to understand now.
:D

Code: Select all
User-agent: *
Disallow: /Download/
Disallow: /rsspql/
Disallow: /viewtopic.php
Disallow: /viewforum.php
Disallow: /index.php?
Disallow: /posting.php
Disallow: /groupcp.php
Disallow: /search.php
Disallow: /login.php
Disallow: /privmsg.php
Disallow: /post
Disallow: /member
Disallow: /profile.php
Disallow: /memberlist.php
Disallow: /faq.php


Thank's for PM :wink:
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Postby Peter77 » Tue Dec 05, 2006 6:03 am

I've had the same problem here and there too. ( vp49608.html no tittle name ) Even though the cache does seem to work. I do think it is because of when I first installed the Adv SEO or maybe I was in the middle of changes, ect.

But the zero dupe does not handle these types of URL's dcz... am I correct? It would be nice if it did and if it does, than I am missing something. :idea:
Peter77
phpBB SEO Team
phpBB SEO Team
 
Posts: 520
Joined: Wed May 10, 2006 9:46 am
Location: Michigan

Postby linus » Tue Dec 05, 2006 6:14 am

Peter77 wrote:I've had the same problem here and there too. ( vp49608.html no tittle name ) Even though the cache does seem to work. I do think it is because of when I first installed the Adv SEO or maybe I was in the middle of changes, ect.

But the zero dupe does not handle these types of URL's dcz... am I correct? It would be nice if it did and if it does, than I am missing something. :idea:


Super-News :D

I have resolved, thank's to DCZ. :P

here the mod :

[MOD]Once the code is final we'll start comment it ;)[/MOD]


I do not know if I have made all good,
dcz it only can advise to us if something lacks. :?

It seems to work very well all...bye. :wink:
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Postby dcz » Tue Dec 05, 2006 7:21 am

It's working nicely : http://www.forum-linux-italia.com/wrong-title-vf2.html

http://www.forum-linux-italia.com/viewtopic.php?p=151

For the empty titles -vtxx.html etc ... you can just change all the :

Code: Select all
^.+-


with

Code: Select all
^.*-


in .htaccess (phpBB SEO Rewrtiterules)

Example :

Code: Select all
RewriteRule ^.*-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]


The + is asking for at least something, the * is asking for something or nothing ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby linus » Tue Dec 05, 2006 8:16 am

Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum-linux-italia\.com$ [NC]
RewriteRule ^(.*) http://www.forum-linux-italia.com/$1 [QSA,L,R=301]

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
RewriteRule ^.*-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
RewriteRule ^.*-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^.*-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
RewriteRule ^.*-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^.*-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]

RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-map\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^.*-fmp([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^.*-fmp([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^.*-sc([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]

RewriteRule ^sitemaps\.xml$ /sitemap.php [L]
RewriteRule ^forum-sitemap-([0-9]+)\.xml$ /sitemap.php?fid=$1 [L]
RewriteRule ^sitemap-forum\.xml$ /sitemap.php?forum [L]


ok? :?:
Last edited by linus on Wed Dec 06, 2006 6:22 am, edited 1 time in total.
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Postby linus » Tue Dec 05, 2006 11:53 am

:arrow: -http://www.forum-linux-italia.com/-fmp1.html

-http://www.forum-linux-italia.com/forum-10.html&sid=10fd3a6fb809b6830c3b77810f680917 perhaps it wants us of the time :cry:
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Postby dcz » Tue Dec 05, 2006 3:47 pm

For the first one : -http://www.forum-linux-italia.com/-fmp1.html do not alter the rewriterule, the zero dupe is not working in mx sitemaps tyet, so you'd better keep the 404 to make sure bots will forget about it.

Additionaly, you could add :

Code: Select all
Disallow: /-fmp


In you robots.txt to clear those faster from the SERPs.

For the second one : -http://www.forum-linux-italia.com/forum-10.html&sid=10fd3a6fb809b6830c3b77810f680917
I told you to add the previously used able2know, but forgot to the link to show you an example sry.

So, you need to add your old able2know rewriterules at the bottom of you .htaccess like in this example (but without path in your case, just like it was before you migrate yourself).

And they'll get redirected.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby linus » Tue Dec 05, 2006 7:30 pm

My session.php :cry: :cry: :cry:

Code: Select all
   if ( $userdata['session_user_id'] != ANONYMOUS )
{
   $SID = $user_id > 0 ? 'sid=' . $session_id : '';
}

else

{
     $sql = "SELECT * FROM " . FORUMS_TABLE . " ORDER BY forum_id";
     $result = $db->sql_query($sql);
     $guest_permission = false;
     if( $result )
     {


I've mod "guest session mod" :cry:

helpme :cry:

My NEW_HTACCESS :

Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum-linux-italia\.com$ [NC]
RewriteRule ^(.*) http://www.forum-linux-italia.com/$1 [QSA,L,R=301]

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^.+-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]

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]

RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-map\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^.+-fmp([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^.+-fmp([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^.+-sc([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]

RewriteRule ^sitemaps\.xml$ /sitemap.php [L]
RewriteRule ^forum-sitemap-([0-9]+)\.xml$ /sitemap.php?fid=$1 [L]
RewriteRule ^sitemap-forum\.xml$ /sitemap.php?forum [L]


yes or no? thank's you...you very BIG!!! :P
Last edited by linus on Wed Dec 06, 2006 6:20 am, edited 1 time in total.
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Postby dcz » Wed Dec 06, 2006 12:28 am

Yes it's the idea.

This will make you old able2know url to work and then be redirected by the zero dupe.

Once you'll have it online -http://www.forum-linux-italia.com/about309.html will be redirected as it should. like -http://www.forum-linux-italia.com/post578.html or -http://www.forum-linux-italia.com/viewtopic.php?t=125

Anyway, i found the source for these old links : -http://www.forum-linux-italia.com/fuss-project-vt309.html

Look at the forum link : "Generale", it's still rewritten the able2know way.

This most likely means you did not uninstall the able2know mod properly and that you did not fully edit viewtopic.php for the advanced mod rewrite.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby linus » Wed Dec 06, 2006 6:25 am

ok...update new_htaccess.

This problem is resolved :P

ADD:

Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum-linux-italia\.com$ [NC]
RewriteRule ^(.*) http://www.forum-linux-italia.com/$1 [QSA,L,R=301]

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^.+-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]

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]

RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-map\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^.+-fmp([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^.+-fmp([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^.+-sc([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]

RewriteRule ^sitemaps\.xml$ /sitemap.php [L]
RewriteRule ^forum-sitemap-([0-9]+)\.xml$ /sitemap.php?fid=$1 [L]
RewriteRule ^sitemap-forum\.xml$ /sitemap.php?forum [L]


:) 8) :wink:
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Postby dcz » Wed Dec 06, 2006 8:13 am

Manifico :D

So you old URL are now fully redirected. But you still need to install the cyber alien guest sessions mod, I saw SID in your forum.
Then, you still need to do something about the forum link on viewtopic.php.
dcz wrote:
Look at the forum link : "Generale", it's still rewritten the able2know way.

This most likely means you did not uninstall the able2know mod properly and that you did not fully edit viewtopic.php for the advanced mod rewrite.



++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby linus » Wed Dec 06, 2006 5:13 pm

Manifico --> Magnifico :D :wink:

I do not succeed to understand what I must make :cry:

But you still need to install the cyber alien guest sessions mod, I saw SID in your forum.
Then, you still need to do something about the forum link on viewtopic.php.


cyber alien guest sessions mod What's?

I've installed this MOD:

Code: Select all
#################################################################
## MOD Title: Guest Sessions MOD
## MOD Version: 0.04
## MOD Author: CyberAlien <no@public_email> (Vjacheslav Trushkin) http://www.phpbbstyles.com
## MOD Description:
##      This mod removes session id for guests from url and this way
##      guests who don't have cookies like different robots will use
##      correct urls. It can be used to allow googlebot and other
##      search engines to spider your forum correctly.
##
##
##
## Installation Level:   Easy
## Installation Time:   1-2 Minutes
## Files To Edit (1): includes/sessions.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]---------------------------------------------
#
includes/sessions.php

#
#-----[ FIND ]---------------------------------------------
# around line 157
   $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, session_admin = $admin
      WHERE session_id = '" . $session_id . "'
         AND session_ip = '$user_ip'";

#
#-----[ REPLACE WITH ]---------------------------------------
#
   $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, session_admin = $admin
      WHERE session_id = '" . $session_id . "' $sql_ip
         AND session_user_id = '$user_id'";

#
#-----[ FIND ]---------------------------------------------
# around line 210
   $SID = 'sid=' . $session_id;

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

#
#-----[ FIND ]---------------------------------------------
# around line 288
            $SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : '';

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

#
#-----[ FIND ]---------------------------------------------
# around line 340
   //
   // If we reach here then no (valid) session exists. So we'll create a new one,
#
#-----[ BEFORE, ADD ]---------------------------------------
#
   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;
      }
   }

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


viewforum.php????

I have found this :

Code: Select all
#-----[ OPEN ]------------------------------------------
#
#

viewforum.php

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

if( $all_forums[$i]['forum_id'] == $parent_id )
{

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

// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $all_forums[$i]['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END

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

if( $total_forums )
{

#
#-----[ AFTER, ADD ]------------------------------------------
#
// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $forum_row['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END


#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,

#
#-----[ BEFORE, ADD ]------------------------------------------
#

// phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $subforum_data[$j]['forum_name'];
// phpBB-SEO.com SEO TOOLKIT END


but, I don't this codec in the file viewforum... :cry: :cry: :cry:

You've a link MOD?

Thank's :wink:


EDIT: updata session php in :

Code: Select all
if ( $userdata['session_user_id'] != ANONYMOUS ){
   $SID = 'sid=' . $session_id;
} else {
   $SID = '';
}


EDIT TWO :

http://img520.imageshack.us/img520/4544/esempio7fu5.png :cry: :cry: :cry:

EDIT TREE : (edit two :roll: )

This code in htaccess :

Code: Select all
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


not link : -http://www.forum-linux-italia.com/forum-map.html (Error)

task is the same problem for edit two :? , delete the code all ok. :? (I delete it)

PS: I adjust viewforum e viewtopic for mod_advance_rewrite, :oops:

Edit :
Code: Select all
RewriteRule ^forum-([0-9]*).* /viewforum.php?f=$1 [L,NC]


this is the error :wink:


----------->

Edit :

I resolved with sitemap deleting the code "" RewriteRule ^forum-([0-9]*).* /viewforum.php?f=$1 [L,NC] "" and -http://www.forum-linux-italia.com/forum-map.html is ok now.

One problem now --> code in the file viewforum ???
User avatar
linus
PR0
PR0
 
Posts: 68
Joined: Sun Jul 02, 2006 12:19 pm
Location: Italy

Next

Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest