https://www.icyphoenix.com/viewtopic.php?f=4&t=492
-----------------------------------
xSiS
Mon 16 Oct, 2006 22:29

SEO - Problem With Google Keyword - Changing URL Rewrite Rule
-----------------------------------
I have already asked in the spanish forum but they couldnt resolve my answer. If I break any rules, I'm sorry.. my english is not very good.

My problem is that I want to modify  "Google keyword URLs 2.1.0 webmedic This MOD makes static URLs for phpBB http://www.webmedic.net/ " which phpBB XS2 includes.

What i want to do is change the endings, for example (in red):

amigos-google-phpbb-y-un-sitemap-[color=#ff0000]vt[/color]6806.HTML

And change the ending, instead of [color=#ff0000]-vt[/color]  [color=#0cff00]-vt-descarga-directa[/color]

Which files do I have to change? i tried modifying  .htaccess and page_header.php, but it doesnt work.

What do i have to do?

Thanks  :mrgreen:  :mrblue:  :mrorange:  :mrviolet:  :mryellow:


-----------------------------------
Frost
Wed 10 Jan, 2007 20:41

Re: Problem With Google Keyword URLs 2.1.0
-----------------------------------
Hmm, this uses "vt" because it is basically shortening the name for viewtopic.php to vt

I can show you how to change it but I don't know the consequences as I do not use the mod.
You tried doing the edit in both files at the same time right? Both have to be done to work.

Open:

includes/page_header.php

Find:

[code linenumbers=false]
"make_url_friendly('6') . '-vt1.html' . if_query('2') . stripslashes('56') . '</a>'",
[/code]

Replace Witih:

[code linenumbers=false]
"make_url_friendly('6') . '-vt-descarga-directa1.html' . if_query('2') . stripslashes('56') . '</a>'",
[/code]

Open:

.htaccess

Find:

[code linenumbers=false]
RewriteRule [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1
[/code]

Replace With:

[code linenumbers=false]
RewriteRule [.]*-vt-descarga-directa([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1
[/code]

[b][color=red]Remember to save back-ups whenever you do any edits [/color][/b]


____________

[highlight=#00ccff]I know this is an old post but I got bored and clicked "View Unanswered Posts" in hopes that I could help and maybe.. just maybe.. these people are watching this topic, also marking SOLVED on all posts that have been solved to tidy up a bit[/highlight]


-----------------------------------
Mighty Gorgon
Thu 11 Jan, 2007 02:26

Re: Problem With Google Keyword URLs 2.1.0
-----------------------------------
Good answer [b]Frost[/b], I'm adding this in the Docs Section. :mri:


-----------------------------------
Frost
Thu 11 Jan, 2007 09:30

Re: Problem With Google Keyword - Changing URL Rewrite Rule
-----------------------------------
I was hoping he would post back to say if it was successful lol


