| :: |
| Author |
Message |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Sat Jun 16, 2007 11:16 pm Post subject: arabic forum with advanced mod |
|
|
-http://www.paramegsoft.org/phpbb
this is test arabic forum with advanced mod
i changed a-z with ا-ي
to try get arabic cha. in the url but its dont change  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Sat Jun 16, 2007 11:42 pm Post subject: Re: arabic forum with advanced mod |
|
|
dcz if i convert from simple mod to advanced
how i can dont lost my pages in google
and google convert it to new urls
in phpbb3 |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Sun Jun 17, 2007 11:43 am Post subject: Re: arabic forum with advanced mod |
|
|
welcome
this code which should be change char. in the url
like
| Code: |
RewriteRule ^phpbb/[a-z0-9ا-ي]*-f([0-9]+)(-([0-9]+))?/?$ /phpbb/viewforum.php?f=$1&start=$3 [QSA,L,NC]
|
does it need edite in the mod  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Sun Jun 17, 2007 11:56 am Post subject: Re: arabic forum with advanced mod |
|
|
First we need to validate this new feature, fully, redirection will be as easy as before once everything will work nicely.
We already saw that -http://sha.ms/f-23-قنوات-تليفزيونية could load properly with IE6, but would end up being ul_encoded with FF : -http://sha.ms/f-23-%D9%82%D9%86%D9%88%D8%A7%D8%AA-%D8%AA%D9%84%D9%8A%D9%81%D8%B2%D9%8A%D9%88%D9%86%D9%8A%D8%A9
So first, we need to test out without the zero duplicate, to first be sure to handle the url rewritting proper.
In phpbb_seo/phpbb_seo_class.php try to use this version of the format_url() method :
| Code: | function format_url( $url, $type = 'topic' ) {
// stats
$startime = $this->microtime_float();
$url = preg_replace('`\[.*\]`U','',$url);
$url = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$url);
$url = preg_replace(array("`[[:punct:]]+`", "`[\s]+`", "`[\s]+u`", "`[-]+`"), '-', $url );
$url = trim($url, '-');
$url = ( empty($url) ) ? $type : trim($url);
return $url;
} |
The problem being, I did not find a way to get rid of all spaces there when using FF.
IE6 is ok though things like -http://localhost/phpbb3/Test-Forum-1-f2/قنوات-تليفزيونية-t17.html
are working.
Needs further investigation, but we'll do it.
You'll need to update the rewriterules, replacing all the [a-z0-9_-] with a single dot : . in the .htaccess.
I invetigate further on the whitespace thing, and the zero dupe later
++ |
_________________ 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 |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Sun Jun 17, 2007 12:09 pm Post subject: Re: arabic forum with advanced mod |
|
|
greaaaaaaaaaaaaat
it wark now
look dcz
-http://www.paramegsoft.org/phpbb/منتدى-تجريبي-1-f2/
but it give me not found
i dont edite yet in .htacces
bur i replaced code in php_seo
in ie 7 no problem it work good
i will try to edite in .haccess file now  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Sun Jun 17, 2007 1:46 pm Post subject: Re: arabic forum with advanced mod |
|
|
ok
what if i replaced [a-z0-9_-] to (.*)  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Sun Jun 17, 2007 8:18 pm Post subject: Re: arabic forum with advanced mod |
|
|
i have not found
| Code: |
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L]
# FORUM
RewriteRule ^phpbb/[(.*)]*-f([0-9]+)(-([0-9]+))?/?$ /phpbb/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC
RewriteRule ^phpbb/[(.*)]*-f([0-9]+)/[(.*)]*-t([0-9]+)(-([0-9]+))?\.html$ /phpbb/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES
RewriteRule ^phpbb/announces/[(.*)]*-t([0-9]+)(-([0-9]+))?\.html$ /phpbb/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/memberlist.php?mode=viewprofile&u=$1 [QSA,L]
# THE TEAM
RewriteRule ^phpbb/the-team\.html$ /phpbb/memberlist.php?mode=leaders [QSA,L,NC]
# END PHPBB PAGES
#####################################################
|
this rewrite rules which i use |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Sun Jun 17, 2007 9:00 pm Post subject: Re: arabic forum with advanced mod |
|
|
| Code: | #########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L]
# FORUM
RewriteRule ^phpbb/.*-f([0-9]+)(-([0-9]+))?/?$ /phpbb/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC
RewriteRule ^phpbb/.*-f([0-9]+)/.*-t([0-9]+)(-([0-9]+))?\.html$ /phpbb/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES
RewriteRule ^phpbb/announces/.*-t([0-9]+)(-([0-9]+))?\.html$ /phpbb/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/memberlist.php?mode=viewprofile&u=$1 [QSA,L]
# THE TEAM
RewriteRule ^phpbb/the-team\.html$ /phpbb/memberlist.php?mode=leaders [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
 |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Fri Jun 22, 2007 10:55 am Post subject: Re: arabic forum with advanced mod |
|
|
With FF, there nothing much we can do I think, unless some FF wizard knows the trick to tell him to change it's behaviour.
The weird thing I was fighting with is that FF is adding TABs in the utf-8 urls when looking at a link url (not clicking, just positioning the mouse on it) at the lower left of the windows.
But there does not seems to be any in the urlencoded version.
I'll start thinking about the zero dupe trick to go with this setting, continue to test
++ |
_________________ 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 |
|
 |
|
|