About different URL's

phpBB3 SEO Simple mod Rewrite support forum. This mods performs URL rewriting for phpBB3 in a static way.

Moderator: Moderators

About different URL's

Postby Gisher » Tue Dec 23, 2008 2:13 pm

This mod works fine for me
Have small question about rewriting URL's
Different urls for the same post
Please, look to urls in this pictures

In index.php

Image

viewforum.php

Image

viewtopic.php (1)

Image

viewtopic.php (2)

Image

I think the most right rewrite is in viewtopic.php (1)
Because even in robots.txt we block /post

Any ideas?
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Advertisement

Postby SeO » Tue Dec 23, 2008 2:24 pm

There is a single template code change to do so in viewopic_body.html listed in install, for the rest of posts urls (which for the most are not shown to bots in phpBB3) you can install the no duplicate mod, you'll have the same linking as on the demo server :
http://phpbb3.phpbb-seo.net/

except in simple rewrite mod.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Gisher » Tue Dec 23, 2008 2:53 pm

Is it working with Simple Seo Rewrite 0.4.8 ?
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Postby Gisher » Tue Dec 23, 2008 3:19 pm

Need only correct URls, Simple Seo works fine for me)
How do this "mix"? :)
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Postby SeO » Thu Dec 25, 2008 3:30 pm

Yes you can install the no dupe with any of our SEO url mod ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Gisher » Thu Dec 25, 2008 4:49 pm

There were a lot of changes in no dupe mod.
I need only chage urls, can you write instructions only for this?
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Postby SeO » Thu Dec 25, 2008 4:51 pm

Well, this is almost only to rewrite urls, you could save few lines of code if you would not display the last topic titles on index, but that's pretty much is the most doable, all the rest is necessary for the post to topic url translation.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Gisher » Thu Dec 25, 2008 4:59 pm

I already install mod Last Topic Tittles 1.2.7 and works fine with simle seo 0.4.8
http://www.flying-bits.org/viewforum.php?f=7
How can I use no dupe without uninstall this one?
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Postby Gisher » Fri Dec 26, 2008 8:34 pm

For example
Code: Select all
http://www.phpbbguru.net/community/
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Postby Gisher » Mon Jan 05, 2009 8:12 am

I find solution for mini post (may be it's not right, but it works :) )
In viewtopic.php line
Code: Select all
      'U_MINI_POST'      => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'p=' . $row['post_id']) . (($topic_data['topic_type'] == POST_GLOBAL) ? '&f=' . $forum_id : '') . '#p' . $row['post_id'],

Replace with
Code: Select all
      'U_MINI_POST'      => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $topic_id . '&f=' . $forum_id . '&start=' . $start ) . '#p' . $row['post_id'],


Please help me with viewforum and index links
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Postby SeO » Mon Jan 05, 2009 10:10 am

Yes, this kind of works, though the template code change suggested in the mod rewrite install already achieves this ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Gisher » Mon Jan 05, 2009 11:11 am

SeO
May I hope, that You will help me? :roll:


Happy New Year people! :)
(sorry for offtop)
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Postby SeO » Mon Jan 05, 2009 12:03 pm

Happy new year too :D

It's this part in the mod rewrite install that will make so the post link will use the topic urls in viewtopic.

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

styles/prosilver/template/viewtopic_body.html

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

<a href="#p{postrow.POST_ID}">

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

<a href="{U_VIEW_TOPIC}#p{postrow.POST_ID}">

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

<a href="#wrap" class="top" title="{L_BACK_TO_TOP}">

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

<a href="{U_VIEW_TOPIC}#wrap" class="top" title="{L_BACK_TO_TOP}">


It's as well required for the # links to work, so it's included in the SEO url mod itself directly ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Gisher » Mon Jan 05, 2009 12:36 pm

Thank You very much for answer...
I try many ways to change urls as I want...
Have errors...
(includes/functions_display.php param $last_post_url , viewforum.php , viewforum.html, forumlist_body.html etc)

Anybody, can give me correct instructions?
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am

Postby Gisher » Tue Jan 06, 2009 4:08 am

Problem solved.
Gisher
PR0
PR0
 
Posts: 75
Joined: Sat Sep 27, 2008 8:54 am


Return to Simple SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Alexa [Bot] and 1 guest