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  
 
   
Profile URLs in subfolder

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



Joined: 02 Dec 2007
Posts: 5

Profile URLs in subfolderPosted: Thu Mar 13, 2008 6:57 am    Post subject: Profile URLs in subfolder

Hello,
I've turned on "Profiles and groups injection" in phpBB SEO Class settings.
After a .htaccess update, my board successfully shows the profile URLs as -www.domain.com/nickname-uxx.html . Is there any was to change the profile URLs to -www.domain.com/profiles/nickname-uxx.html ?


Last edited by soumik on Sun Mar 23, 2008 3:20 pm; edited 1 time in total
Back to top
soumik



Joined: 02 Dec 2007
Posts: 5

Profile URLs in subfolderPosted: Sat Mar 15, 2008 1:45 pm    Post subject: Re: Profile URLs in subfolder

Anyone?
Why isn't anyone replying? Rolling Eyes
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Profile URLs in subfolderPosted: Sun Mar 23, 2008 11:09 am    Post subject: Re: Profile URLs in subfolder

Why would you want to do so ?

It's doable, but you'll have to keep the code change in the future updates, not that it will be difficult but rather than it will be a source of confusion if you are not comfortable with coding.

Anyway, to do so, the easiest way would be to replace :

Code:
   function memberlist_adv() {
      $this->path = $this->seo_path['phpbb_urlR'];

with :

Code:
   function memberlist_adv() {
      $this->path = $this->seo_path['phpbb_urlR'] . 'profile/';


and :

Code:
   function memberlist_smpl() {
      $this->path = $this->seo_path['phpbb_urlR'];

with :

Code:
   function memberlist_smpl() {
      $this->path = $this->seo_path['phpbb_urlR'] . 'profile/';


And then to add "profile/" in the profile rewriterule, in addition to the regular phpBB path (which can be empty in case it's installed int he domain's root).

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
soumik



Joined: 02 Dec 2007
Posts: 5

Profile URLs in subfolderPosted: Sun Mar 23, 2008 3:18 pm    Post subject: Re: Profile URLs in subfolder

Thank you, dcz, for taking time to reply.
After changing the codes in the phpbb_seo_class.php and after updating the .htaccess, it's working like a charm!

dcz wrote:
It's doable, but you'll have to keep the code change in the future updates, not that it will be difficult but rather than it will be a source of confusion if you are not comfortable with coding.

I think I'll be able to handle that. I can code in Java. And probably, I'll start learning php in the next month. So, I don't think it will be cumbersome for me. Wink

dcz wrote:
Why would you want to do so ?

Simply because it looks good. I think you should have this as default in the phpBB-SEO mod.

Thanks again. Very Happy

Soumik
Back to top
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: