| |
|
| :: |
| Author |
Message |
auday1982
Joined: 04 Feb 2007 Posts: 6
|
Posted: Sun Feb 04, 2007 1:59 am Post subject: help:removing or editing larsneo shorturls |
|
|
hello guys
this s my first post
no url admins ...hehehe
running phpbb2 plus and website in arabic ...when i turned the friendly url on (use larsneo mod ) it created good urls for topics but not for categories and forums
the reason is that arabic language s not so search engine friendly and it doesnt work for the directories/files urls ...
example of the new urls
forums/forum10,%E3ae%CA%CF%EC-%C7%E1%E3%E1%C7%CD%D9%C7%CA-%E6%C7%E1%C7%D3%CA%DD%D3%C7%D1%C7%CA.html
i want to edit this and make it forum10.html nothing else ..no forum tittle or category tittle ..
or remove it and install the simple seo from here ..i liked that it becomes forumc3.html and forum10.html topic32.html and topic32-13.html
xx yy only and no name because they are in arabic
please help and i will appritiate whtever u do for us
thanks
auday al iraqi |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
Posted: Sun Feb 04, 2007 1:01 pm Post subject: Re: help:removing or editing larsneo shorturls |
|
|
And welcome
Actually, you came to the right place
The phpBB SEO simple mod rewrite will fit any char-set, as it' not injecting any title in urls.
But, we have developed an even better solution, at least for some web site using non Latin char-set, but not always.
For example http://forum.persia-cms.com/ is using the advanced mod rewrite with just a simple code change to only allow the eventual Latin char set in title to be injected in URLs. So this is mostly useful for technical web site, as many time they'll use some technical Latin char-set words, like here http://forum.persia-cms.com/persia-cms-vf1.html
And if a title does not contain any Latin char-set word, then it's rewritten statically : http://forum.persia-cms.com/topic-vt389.html
So it's up to you, if you feel your forum and topic titles are likely to be often partly using Latin char-set words, it can be interesting.
You have as well the choice between all the phpBB SEO mod Rewrites, the mixed one could allow you to use some Latin char-set words in your forums urls, and always keep a static one for topics.
And, last thing, in the above example, the delimiters are the older ones, "-vt" and now it's only "-t"
If you're interested with the trick with non Latin char-set, please tell me, I'll tell you what is the extra step to do this
++ |
_________________ 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 |
|
 |
auday1982
Joined: 04 Feb 2007 Posts: 6
|
Posted: Sun Feb 04, 2007 4:33 pm Post subject: Re: help:removing or editing larsneo shorturls |
|
|
hello
thanks man ..ur answered half of my question perfectly, now i have an idea wht to do ...thanks alot ..i downloaded ur mod and it s one step away from being used
but what about larsneo mod which s installed by the phpbb plus team and i dont know wht to do with it
how to uninstall it ...i found this
file admin/admin_plus.php
| Code: | $shorturls_yes = ( $new['enable_shorturls'] ) ? "checked=\"checked\"" : "";
$shorturls_no = ( !$new['enable_shorturls'] ) ? "checked=\"checked\"" : "";
|
and this
in includes page_header.php
| Code: | //
// Short URL implementation
//
// start buffering
ob_start();
function replace_for_mod_rewrite(&$s) {
global $phpbb_root_path, $phpEx;
$cache_seo = $phpbb_root_path . 'cache/c_seolist.'.$phpEx;
if (@file_exists($cache_seo))
{
@include($cache_seo);
if ( is_array($seo_list_in) && is_array($seo_list_out) )
$s = preg_replace($seo_list_in, $seo_list_out, $s);
}
$prefix = '|"(?:./)?';
// now that we know about the correct $prefix we can start the rewriting
$urlin =
array(
$prefix . 'index.php\?c=([0-9]*)"|',
$prefix . 'index.php"|',
$prefix . 'viewforum.php\?f=([0-9]*)&(?:amp;)topicdays=([0-9]*)&(?:amp;)start=([0-9]*)"|',
$prefix . 'viewforum.php\?f=([0-9]*)"|',
$prefix . 'viewtopic.php\?t=([0-9]*)&(?:amp;)view=previous"|',
$prefix . 'viewtopic.php\?t=([0-9]*)&(?:amp;)view=next"|',
$prefix . 'viewtopic.php\?t=([0-9]*)&(?:amp;)postdays=([0-9]*)&(?:amp;)postorder=([a-zA-Z]*)&(?:amp;)start=([0-9]*)"|',
$prefix . 'viewtopic.php\?t=([0-9]*)&(?:amp;)start=([0-9]*)&(?:amp;)postdays=([0-9]*)&(?:amp;)postorder=([a-zA-Z]*)&(?:amp;)highlight=([a-zA-Z0-9]*)"|',
$prefix . 'viewtopic.php\?t=([0-9]*)&(?:amp;)start=([0-9]*)"|',
$prefix . 'viewtopic.php\?t=([0-9]*)"|',
$prefix . 'viewtopic.php\?p=([0-9]*)#([0-9]*)"|',
);
$urlout = array(
'"forumc\\1.html"',
'"forums.html"',
'"viewforum\\1-\\2-\\3.html"',
'"forum\\1.html"',
'"ptopic\\1.html"',
'"ntopic\\1.html"',
'"ftopic\\1-\\2-\\3-\\4.html"',
'"ftopic\\1.html"',
'"ftopic\\1-\\2.html"',
'"ftopic\\1.html"',
'"fpost\\1.html#\\1"',
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}
} |
and dont know if there is any other code around
wht to do with that mod now
by the way sessions ids disabled by the phpbb plus admin_plus.php from ACP/plus configuration
thanks alot[/quote] |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
Posted: Sun Feb 04, 2007 4:40 pm Post subject: Re: help:removing or editing larsneo shorturls |
|
|
Well, the principle is the same as per every type of migration, you should fully uninstall the original mod (to do this, just take a look the original install and do it reverse), but keep the old rewriterules up and running, for the zero dupe to do its job.
First step is to choose the mod rewrite you want to install, and then, to start a topic in the mod rewrite you'll be using forum, and I'll tell you what to do and will provide support for this.
Take your time, migrating is easy but must be done properly.
Here is an example of a member migrating from the able2know mod rewrite to the phpBB SEO Advanced one.
General steps will be the same, except you do not deal with able2know mod.
Just start a similar thread for the SEO url V2 mod, and I'll help you out
++ |
_________________ 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 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|