user profiles & 404sef

15 years 4 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 to join the conversation.

15 years 4 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 to join the conversation.

14 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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.406 seconds

Facebook Twitter LinkedIn