Profile URLs in subfolder

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Profile URLs in subfolder

Postby soumik » Thu Mar 13, 2008 6:57 am

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.
soumik
 
Posts: 5
Joined: Sun Dec 02, 2007 1:09 pm

Advertisement

Postby soumik » Sat Mar 15, 2008 1:45 pm

Anyone?
Why isn't anyone replying? :roll:
soumik
 
Posts: 5
Joined: Sun Dec 02, 2007 1:09 pm

Postby dcz » Sun Mar 23, 2008 11:09 am

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: Select all
   function memberlist_adv() {
      $this->path = $this->seo_path['phpbb_urlR'];

with :

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


and :

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

with :

Code: Select all
   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).

;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby soumik » Sun Mar 23, 2008 3:18 pm

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. ;)

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. :D

Soumik
soumik
 
Posts: 5
Joined: Sun Dec 02, 2007 1:09 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Bing [Bot] and 2 guests