| |
|
| :: |
| Author |
Message |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Sun Dec 03, 2006 6:25 pm Post subject: sitemap --> google |
|
|
Hello...I'm a little problem with google.
here :
-http://www.forum-linux-italia.com/-fmp1.html
-http://www.forum-linux-italia.com/forum-10.html&sid=10fd3a6fb809b6830c3b77810f680917
My htaccess :
| Code: | 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: | 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  |
_________________ ... |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15129
|
Posted: Mon Dec 04, 2006 8:07 am Post subject: Re: sitemap --> google |
|
|
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 || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Mon Dec 04, 2006 5:36 pm Post subject: Re: sitemap --> google |
|
|
One problem :
in the file viewtopic and viewforum I've the code :
delete?
Thank's...
| Code: | // 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: | 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: | #
#-----[ 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: | | define('PHPBB_URL', '/'); |
ok? thank's  |
_________________ ... |
|
| Back to top |
|
 |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Tue Dec 05, 2006 5:50 am Post subject: Re: sitemap --> google |
|
|
News :
Robots.txt = /post
I have to understand now.
| Code: | 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  |
_________________ ... |
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 515 Location: Michigan
|
Posted: Tue Dec 05, 2006 6:03 am Post subject: Re: sitemap --> google |
|
|
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.  |
_________________ Juarol.com
| Frekuenciadigital.com | |
|
| Back to top |
|
 |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Tue Dec 05, 2006 6:14 am Post subject: Re: sitemap --> google |
|
|
| 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.  |
Super-News
I have resolved, thank's to DCZ.
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.  |
_________________ ... |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15129
|
|
| Back to top |
|
 |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Tue Dec 05, 2006 8:16 am Post subject: Re: sitemap --> google |
|
|
| Code: | 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 |
|
| Back to top |
|
 |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Tue Dec 05, 2006 11:53 am Post subject: Re: sitemap --> google |
|
|
-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  |
_________________ ... |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15129
|
Posted: Tue Dec 05, 2006 3:47 pm Post subject: Re: sitemap --> google |
|
|
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 :
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 || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Tue Dec 05, 2006 7:30 pm Post subject: Re: sitemap --> google |
|
|
My session.php
| Code: |
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"
helpme
My NEW_HTACCESS :
| Code: | 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!!!  |
_________________ ...
Last edited by linus on Wed Dec 06, 2006 6:20 am; edited 1 time in total |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15129
|
Posted: Wed Dec 06, 2006 12:28 am Post subject: Re: sitemap --> google |
|
|
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 || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Wed Dec 06, 2006 6:25 am Post subject: Re: sitemap --> google |
|
|
ok...update new_htaccess.
This problem is resolved
ADD:
| Code: | 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] |
 |
_________________ ... |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15129
|
Posted: Wed Dec 06, 2006 8:13 am Post subject: Re: sitemap --> google |
|
|
Manifico
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 || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
linus PR0


Joined: 02 Jul 2006 Posts: 56
|
Posted: Wed Dec 06, 2006 5:13 pm Post subject: Re: sitemap --> google |
|
|
Manifico --> Magnifico
I do not succeed to understand what I must make
| Quote: | 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: | #################################################################
## 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: | #-----[ 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...
You've a link MOD?
Thank's
EDIT: updata session php in :
| Code: | if ( $userdata['session_user_id'] != ANONYMOUS ){
$SID = 'sid=' . $session_id;
} else {
$SID = '';
} |
EDIT TWO :
http://img520.imageshack.us/img520/4544/esempio7fu5.png
EDIT TREE : (edit two )
This code in htaccess :
| Code: | 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,
Edit :
| Code: | | RewriteRule ^forum-([0-9]*).* /viewforum.php?f=$1 [L,NC] |
this is the error
----------->
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 ??? |
_________________ ... |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|