[archive] phpBB SEO Advanced mod Rewrite V 0.0.2

phpBB2 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting categories, forums and topic titles in their URLs.

Moderator: Moderators

Postby Hannibal_King » Thu Aug 10, 2006 6:01 pm

JanoF wrote:tu je pouzity iny rewrite ;) daj si viewonline.php do robots.txt a nemas problem, tu ide len o google, nie oto aby si mal pekne adresy ako taky Kuko :)

mne ide o indexovanie a aj o adresy :lol:
inak ked uz si pri Kukovi, ten tam ani robots.txt nema :roll:

JanoF wrote:
Hannibal_King wrote:Edit: and why all robots on my board are still on the index page? :cry: where could be the problem?
problem mas v backlinkoch ;) cize odkazov ktore na teba odniekial odkazuju

http://www.google.sk/search?hl=sk&lr=&q ... orner.biz/

cize sa nediv ze induxuju tovj web ako lemry :) PR3 je tiez nic moc, PR4 je uz lepsie ale ani to nieje nejaka vyhra :)

tak nejak povysvetluj ako to vylepsit :)

//inac preco piseme po slovensky? :D
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Advertisement

Postby dcz » Thu Aug 10, 2006 6:43 pm

Please use PMs if you want to chat in an other language than English here.

++
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 Hannibal_King » Fri Aug 18, 2006 5:28 am

Hello,

if i want to move topic from viewtopic to another forum, i got this error:
Invalid_session


where could be the problem? :(
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby dcz » Fri Aug 18, 2006 12:08 pm

I don't think this could be related to the phpBB SEO mod Rewrite. I never got this issue and they do not interfere with phpBB sessions.

It could be related to the guest session mod, are you using it ?

Could as well be due to cookie settings, thing like that too.
Is this issue new ? Is it working some time but not all the time ?

Please start a new thread in the phpBB Forum for this if you want us to investigate with you.

++
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 lilaaron » Mon Aug 21, 2006 11:50 pm

Hi,

I seem to be having a problem with this mod :roll: bet thats not the first time you have heard this! :shock:

But ya anyways i have installed both mods, that you have mentioned ie the sid removal and i used the one that you mentioned, plus the version on mod rewrite here.

Everything works fine, and no erros... untill i want to view a forum or a post, i just get page cannot be displayed, but without both mods they work fine.

These are the only 2 mods installed on the forums so it must be related to this mod, as i tested the previous mod sessions before installing this one.

Any help would be greatful

Thanks
Aaron
lilaaron
 
Posts: 3
Joined: Mon Aug 21, 2006 11:44 pm

Postby dcz » Tue Aug 22, 2006 12:08 am

And welcome :D

We first have to make sure it's not a simple copy past error.

To find out, first try to upload the modified (and make sure again it is ok) includes/function.php, then includes/sessions.php (modified an re-checked as well).

Then load a page and see what happen, nothing is the answer we want here.

Then, do the same for other files one by one, and load (corresponding to the files you're uploading eg a topic for viewtopic.php and etc ..) a page upon each new upload.

Then, tell me what happen and we'll see what to do. If everything is ok and all links are going 404, then it's an .htaccess issue (paths not set correctly), or worst, mod_rewrite module not being available on your server.

++
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 lilaaron » Tue Aug 22, 2006 3:01 am

Hi

Thanks for your response! 8)

I have checked every file(s) related to both mods, and all replacements/addons are correct and the way it should be.

I am guessing our last two choices are the .htaccess or the server doesnt have mod_rewrite in apache (is the a php command to view the values like phpinfo(); )

Well here is my .htaccess the forums in is a sub root known as forum/

Code: Select all
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.forum-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/.+-vt([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.+-vt([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PAGES
###################################################


Thanks
Aaron
lilaaron
 
Posts: 3
Joined: Mon Aug 21, 2006 11:44 pm

Postby lilaaron » Tue Aug 22, 2006 3:10 am

I got it working!!

i read this post, someone was having the same problem, and you fixed it here:

http://boards.phpbb-seo.com/phpbb-mod-r ... vt105.html

i actually googled for it! and i came back to your forums!!

Thanks alot
Aaron
lilaaron
 
Posts: 3
Joined: Mon Aug 21, 2006 11:44 pm

hello

Postby lavinya » Tue Aug 22, 2006 7:31 am

hello.

dcz thanks for mod.

dcz

.htaccess this line:

Code: Select all
# FORUM PROTECTION RULE
RewriteRule ^phpbb/.+/([^/]+\.html)$ /phpbb/index.php [R=301,L


What means?

thanks.
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Postby dcz » Tue Aug 22, 2006 9:48 am

lilaaron wrote:I got it working!!

i read this post, someone was having the same problem, and you fixed it here:

http://boards.phpbb-seo.com/phpbb-mod-r ... vt105.html

i actually googled for it! and i came back to your forums!!

Thanks alot
Aaron


Lol, it's like when you chat with your roommate, even though is computer stands next to you, the signal may go though up to japan, new york and L.A. before it comes back to you :D

Then, was it because you installed you phpBB in a sub domain and still mentioned path in .htaccess ?

@lavinya

The rule you mention is just checking if a virtual folder would not be injected.

This comes from the way title injection is made possible. Let me explain, in the RegEx, we do not know the topic of forum title so we have to accept any text (restricted here to at least some) before our rewrite anchors (-vt, -vf, -vc ...).

The way I designed the rewriterules forces the use of .html at the end of each URLs as well, let's consider an example :

-www.example.com/forum/topic-title-vtxx.html being the correct URL.

The rule you are talking about is juts making sure that :

-www.example.com/forum/topic/-title-vtxx.html is redirected to the index.

because other wise this URL would still load and break all relative path (href="formu/ ...") as they'd start from the virtual folder "topic/" for the browser in thi case.

This won't be an issue anymore with the zero duplicate mod soon to come.

as we'll be able to play this much (note that this site is using a slightly different URL standard, but the principle will be the exact same) :

http://boards.phpbb-seo.com/the-phpbb-s ... vt126.html

http://boards.phpbb-seo.com/the-phpbb-seo-website-lies-to-you/many-duplicates-are-possible-vt126.html

http://boards.phpbb-seo.com/viewtopic.php?t=126

http://boards.phpbb-seo.com/viewtopic.php?p=908

With pagination handling :

http://boards.phpbb-seo.com/viewtopic.php?p=1238

http://boards.phpbb-seo.com/viewtopic.php?t=4&start=45

As you can see the solution is total and will allow us to moderate topic titles with no SEO harm at all (HTTP 301 is our friend again here ;) )

++
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 lavinya » Tue Aug 22, 2006 11:08 am

dcz your knowledge excellent :)

thanks for reply.

-----
Dcz I'm using other seo mod. mixed seo.

How to convert your seo mod eg: phpBB SEO Advanced mod Rewrite V 0.0.2

but Listing search engines aboutxxx.html :(
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Postby dcz » Tue Aug 22, 2006 12:28 pm

Thanks :D

My idea here is to built up a real solution sharing community. So during this first stage of opening, I share my part ;)


So if I understood well, you are using the mixed mod rewrite, thus posting off topic :D, and as you where previsously using able2know mod rewrite, you'd like to keep your indexing while migrating ?

Solution : http://boards.phpbb-seo.com/phpbb-mod-rewrite/discussions-vt163.html#1302

The rewriterules provided will just keep all the old links http 301 redirected directly from the .htaccess, meaning, non php process at all, the fastest ;)

Implement as well the suggested robots.txt with the correct paths for your installation, and you will be set ;)

If not this, please explain more.

++
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 Hannibal_King » Thu Aug 24, 2006 6:56 am

help please, i have a problem with topic titles in subforums.. :oops:

the topic titles in normal forums are rewriten but in subforums they are not :(

you can see it here http://www.pc-corner.biz/, please help where to problem could be? it was working fine... :(

normal forums - http://www.pc-corner.biz/software-vf7.html
subforums - http://www.pc-corner.biz/odkazy-vf126.html

click on the topic title on the right side...
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby Hannibal_King » Thu Aug 24, 2006 6:59 am

i forgot on this - for the topic titles in viewforum i am using "today/yesterday mod" i have requested here some addon to rewrite this links - http://boards.phpbb-seo.com/phpbb-seo-m ... -vt87.html but now it is not working and i am not sure if it was working in subfrums :D
Hannibal_King
PR0
PR0
 
Posts: 78
Joined: Thu Jun 22, 2006 1:34 pm

Postby dcz » Thu Aug 24, 2006 8:18 am

Hit search "Simple sub forum add on" if it's the simple sub forum mod, replace "simple" with "pseudo" if using pseudo sub forums.

;)

++
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

PreviousNext

Return to phpBB2 Advanced mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest