Skip to Content Skip to Menu

user profiles & 404sef

  • philt
  • philt
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
18 years 3 months ago #5648 by philt
user profiles & 404sef was created by philt
I have 404sef and CB wokign pretty happily together, but the userprofile URL looks like this:

mambo/userprofile.html

I would like it to diplay the username in the URL, liek this:

mambo/<username>.html


anyone know how to do this?

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 8177
  • Thanks: 527
  • Karma: 352
18 years 3 months ago #5845 by beat
Replied by beat on topic Re:user profiles & 404sef
philt wrote:

I have 404sef and CB wokign pretty happily together, but the userprofile URL looks like this:

mambo/userprofile.html

I would like it to diplay the username in the URL, liek this:

mambo/<username>.html


anyone know how to do this?


In RC2 comprofiler.zip package, you will find a start on that topic in a ...sef...php file.

If you feel like doing it please go forward. I didn't have time up to now...

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

  • jeffason
  • jeffason
  • OFFLINE
  • Posts: 84
  • Thanks: 0
  • Karma: 3
17 years 9 months ago #19279 by jeffason
Replied by jeffason on topic Re:user profiles & 404sef
a simple .htaccess trick will let you access peoples profiles that way.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /index.php?option=com_comprofiler&task=userProfile&user='$1' [L]

Put that before any other RewriteCond statements

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn