| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
Beagleman
Joined: 02 Apr 2008 Posts: 5
|
Posted: Wed Apr 02, 2008 6:19 pm Post subject: How to SEO memberlist URLs in addons? |
|
|
In this boards I found snippets to SEO viewtopic URLs and viewforum URLs in addons.
But I don't know how to SEO a memberlist URL like
'memberlist.php?mode=viewprofile&u=4'.
I hope you can help. Thanks!
I think it would be great to make a sticky thread with snippets like this. |
|
|
| Back to top |
|
 |
|
 |
MathieuM. phpBB SEO Team


Joined: 10 Feb 2008 Posts: 447 Location: Rhône-Alpes
|
Posted: Wed Apr 02, 2008 6:27 pm Post subject: Re: How to SEO memberlist URLs in addons? |
|
|
Hi,
It's in your ACP > phpBB SEO settings :
| Code: | Profiles and groups injection:
You can here chose to inject nicknames, group names and user message page (optional see below) in their URLs instead of the default static rewriting, phpBB/nickname-uxx.html instead of phpBB/membrexx.html.
Please Note
Changing this option requires and .htaccess update
Profiles ID removing:
When Profiles and groups injection is activated, you can here chose to use example.com/phpBB/member/nickname instead of the default example.com/phpBB/nickname-uxx.html. phpBB Uses an extra, but light, SQL query on such pages without user id.
Please Note
Special characters won't be hadled the same by all browser. FF always urlencodes (urlencode()), and as it seems using Latin1 first, when IE and Opera do not. For advanced urlencoding options, please read the install file.
Changing this option requires and .htaccess update |
Choose "Yes" for both.
Mathieu. |
_________________ [ Site phpBB SEO ] [ Téléchargements ] [ L'annuaire SEO ] [ Venez vous présenter ] [ Fonction Recherche ]
---------------------------
[ phpBB SEO Site ] [ Downloads ] [ SEO Directory ] [ Introduce yourself ] [ Search function ] |
|
| Back to top |
|
 |
Beagleman
Joined: 02 Apr 2008 Posts: 5
|
Posted: Wed Apr 02, 2008 7:11 pm Post subject: Re: How to SEO memberlist URLs in addons? |
|
|
Thank you for your reply, but you have me missanderstood. The SEO mods are working fine on my sites.
I have a portal (Board3) and the URLs shown in the portal aren't modified. I can fix the viewtopic URLs and the viewforum URLs with the snippets found here.
| Code: |
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( empty($phpbb_seo->seo_url['topic'][$topic_id]) ) {
$phpbb_seo->seo_censored[$topic_id] = censor_text($topic_title);
$phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($phpbb_seo->seo_censored[$topic_id]);
}
if ( empty($phpbb_seo->seo_url['forum'][$forum_id]) ) {
$phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->set_url($forum_name,$topic_data['forum_id'], $phpbb_seo->seo_static['forum']);
}
// www.phpBB-SEO.com SEO TOOLKIT END
|
But I don't know how to fix the member URLs from
'memberlist.php?mode=viewprofile&u=4'
to
'USERNAME-u4.html'
like my other phpbb3 sites. |
|
|
| Back to top |
|
 |
Beagleman
Joined: 02 Apr 2008 Posts: 5
|
Posted: Fri Apr 04, 2008 5:42 pm Post subject: Re: How to SEO memberlist URLs in addons? |
|
|
Can't beleave that I'm the only one with this question.
Maybe my english isn't good enough to explain that.  |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |