phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
arabic forum with advanced mod

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

arabic forum with advanced modPosted: 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 Confused

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

arabic forum with advanced modPosted: 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 Smile

in phpbb3

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

arabic forum with advanced modPosted: Sun Jun 17, 2007 11:43 am    Post subject: Re: arabic forum with advanced mod

welcome Smile

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 Smile

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

arabic forum with advanced modPosted: 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 Wink

++

_________________
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
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

arabic forum with advanced modPosted: Sun Jun 17, 2007 12:09 pm    Post subject: Re: arabic forum with advanced mod

greaaaaaaaaaaaaat

it wark now

look dcz Very Happy Very Happy

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

in ie 7 no problem it work good

i will try to edite in .haccess file now Laughing

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
mhmdkhamis
PR4
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

arabic forum with advanced modPosted: Sun Jun 17, 2007 1:46 pm    Post subject: Re: arabic forum with advanced mod

ok

what if i replaced [a-z0-9_-] to (.*) Rolling Eyes

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

arabic forum with advanced modPosted: Sun Jun 17, 2007 4:25 pm    Post subject: Re: arabic forum with advanced mod

dcz wrote:

You'll need to update the rewriterules, replacing all the [a-z0-9_-] with a single dot : . in the .htaccess.


A single dot will do it Wink

_________________
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
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

arabic forum with advanced modPosted: 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
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

arabic forum with advanced modPosted: 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
#####################################################


Wink

_________________
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
PR4


Joined: 26 Nov 2006
Posts: 436
Location: egypt

arabic forum with advanced modPosted: Sun Jun 17, 2007 9:13 pm    Post subject: Re: arabic forum with advanced mod

yes dcz it worked good now

in ie 7

i have this link in the browser without any problem

http://www.paramegsoft.org/phpbb/منتدى-تجريبي-1-f2/

in ff

http://www.paramegsoft.org/phpbb/%D9%82%D8%B3%D9%85-%D8%AA%D8%AC%D8%B1%D9%8A%D8%A8%D9%8A-f1/

Confused

_________________
برامج |برامج مجانية|العاب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

arabic forum with advanced modPosted: 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 Wink
++

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: