This download was added » Sat May 26, 2007 4:25 pm by SeO and last edited » Fri Mar 05, 2010 3:22 pm by dcz • Last download » Mon Sep 06, 2010 6:28 am
Ultimate SEO URL
This mod will URL rewrite phpBB URLs in various manners, injecting, or not, forums and topic titles in their URLS, each URL being rewritten once, no matter the number of links using it on the page.
This mod requires running Apache Server with mod_Rewrite module loaded, or IIS server running isapi_rewrite.
- viewforum.php?f=xx
- forum-title-fxx.html (by default),
- any-keywords-fxx/ (optional),
- any-keywords/ (optional),
- forumxx.html (optional),
- forumxx/(optional)
- viewforum.php?f=xx&start=yy
- any-keywords-fxx-yy.html (by default),
- any-keywords-fxx/pageyy.html (optional),
- any-keywords/pageyy.html (optional),
- forumxx-yy.html (optional),
- forumxx/pageyy.html(optional)
- viewtopic.php?f=xx&t=yy
- topicyy.html (by default)
- topic-title-tyy.html (optional),
- any-keywords-tyy.html (optional),
- any-keywords-fxx/topicyy.html (optional),
- any-keywords-fxx/topic-title-tyy.html (optional),
- any-keywords-fxx/any-keywords-tyy.html (optional),
- any-keywords/topicyy.html (optional),
- any-keywords/topic-title-tyy.html (optional)
- any-keywords/any-keywords-tyy.html (optional)
- viewtopic.php?f=xx&t=yy&start=zz
- topicyy-zz.html (by default)
- topic-title-tyy-zz.html (optional),
- any-keywords-tyy-zz.html (optional),
- any-keywords-fxx/topicyy-zz.html (optional),
- any-keywords-fxx/topic-title-tyy-zz.html (optional),
- any-keywords-fxx/any-keywords-tyy-zz.html (optional),
- any-keywords/topicyy-zz.html (optional),
- any-keywords/topic-title-tyy-zz.html (optional)
- any-keywords/any-keywords-tyy-zz.html (optional)
- viewtopic.php?p=xx
- postxx.html (by default)
- topic-title-tyy(-zz).html#pxx (and all combination of settings for topics, with the no duplicate mod)
- download/file.php?id=xx(&t=1)
- resources/file-title/(thumb/)xx (optional)
- memberlist.php?mode=viewprofile&u=xx
memberlist.php?mode=viewprofile&un=nickname (if possible)
- memberxx.html (by default)
- nickname-uxx.html (optional),
- nickname-uxx/ (optional),
- member/nickname (optional)
- memberlist.php?mode=group&g=xx
- groupxx.html (by default)
- groupe-name-gxx.html (optional)
- memberlist.php?mode=group&g=xx&start=yy
- groupxx-yy.html (by default)
- groupe-name-gxx-yy.html (optional),
- groupxx/pageyy.html (optional)
- groupe-name-gxx/pageyy.html (optional)
- memberlist.php?mode=leaders
- the-team.html (by default)
- search.php?author_id=xx&sr=post|topics
search_id=egosearch
search.php?author=nickname&sr=post|topics (if possible)
- memberxx-posts|topics.html (optional),
- memberxx/posts|topics/ (optional),
- nickname-uxx-posts|topics.html (optional),
- nickname-uxx/posts|topics/ (optional),
- member/nickname/posts|topics/ (optional).
- search.php?author_id=xx&sr=post|topics&start=yy
search.php?author=nickname&sr=post|topics&start=yy(if possible)
- memberxx-posts|topics-yy.html (optional),
- memberxx/posts|topics/pageyy.html (optional),
- nickname-uxx-posts|topics-yy.html (optional),
- nickname-uxx/posts|topics/pageyy.html (optional),
- member/nickname/posts|topics/pageyy.html (optional).
- search_id=active_topics
- active-topics.html
- search_id=active_topics&start=xx
- active-topics-xx.html
- search_id=unanswered&sr=topics
- unanswered.html
- search_id=unanswered&start=xx&sr=topics
- unanswered-xx.html
- search_id=newposts&sr=topics
- newposts.html
- search_id=newposts&start=xx&sr=topics
- newposts-xx.html
- search_id=unreadposts
- unreadposts.html
- search_id=unreadposts&start=xx
- unreadposts-xx.html
- If the virtual folder is turned on, global announces will be treated in a separate virtual folder :
- viewtopic.php?f=xx&t=yy
- announces/announces-title-tyy.html
- viewtopic.php?f=xx&t=yy&start=zz
- announces/announces-title-tyy-zz.html
Anything in topic title between "[" and "]" won't be injected in URL.
Example :
This topic title : "[SOMETHING] The Topic Title" will correspond to this URL : "the-topic-title-vtxx.html"
Example :
This topic title : """"??Véry bâd tïtle handling"[hehe]!!!" will correspond to this URL : "very-bad-title-handling-vtxx.html"
Example :
topicxx.html and topic-title-txx.html will be modifiable to any-keyword-I-want-txx.html
Example :
In phpbb_seo/includes/setup_phpbb_seo.php, you could add :
- Code: Select all
$this->url_replace = array(
// Purely cosmetic replace
'$' => 'dollar', '€' => 'euro',
'\'s' => 's', // it's => its / mary's => marys ...
// Language specific replace (German example)
'ß' => 'ss',
'Ä' => 'Ae', 'ä' => 'ae',
'Ö' => 'Oe', 'ö' => 'oe',
'Ü' => 'Ue', 'ü' => 'ue',
);
Before :
- Code: Select all
// Let's make sure that settings are consistent
$this->check_config();
To implement custom replacment, language specific (here with the German language example) and / or cosmetic (here for $, € and words ending with 's).
Just make sure that the characters you may add are not already handled properly but the default replacements before you add some more.
And please note that English characters are already properly handled.
