| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
soumik
Joined: 02 Dec 2007 Posts: 5
|
Posted: 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
|
Posted: Sat Mar 15, 2008 1:45 pm Post subject: Re: Profile URLs in subfolder |
|
|
Anyone?
Why isn't anyone replying?  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: 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).
 |
_________________ 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 |
|
 |
soumik
Joined: 02 Dec 2007 Posts: 5
|
Posted: 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.
| 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.
Soumik |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |