Now it seems this has nothing to do with the menu item, but it can only be resolved through .htaccess
with a Joomla SEF rewrite rule.
I've just spent 5 days trying to figure out what I'm missing here.
It turned out I'm probably not missing anything, but just that, unfortunately, nobobody have read the small details of what I've written in this post, therefore the answer didn't correspond to the question.
As I said:
"I have articles with links leading to the CB profile pages of the authors, comments that lead to the CB profile pages of the authors".
Whenever a visitor would click on these links and reach profile pages, he would see:
www.mysite.com/component/comprofiler/userprofile/JohnDoe
So when would he see the desired short URL of:
www.mysite.com/userprofile/JohnDoe
He would see it if he either clicks on a link to his own profile page, through a menu item I have created
and named it 'My Profile', or, whenever a visitor would click on INTERNAL CB links to profile pages, such as CB who's online link to profile pages, or users lists. In that case I do get the correct URL that corresponds to the alias I have set, and the url would be: www.mysite,com/userprofile/JohnDoe
So back to the Rewrite Rule solution:
(this is for those who wish to use Joomla Core SEF, and not options like sh404SEF).
Kyle, I know I should build the RewriteRule properly but, as I said below, I don't have the experience to do so. That's why I was hoping you guys could help with this...
Now, this has to be stressed:
This is not a privet individual hack that needs to be done only for the sake of one person.
Having searched this forum for days now, I can safely say that this hack is much needed by a large portion of the CB users who currently don't have a solution.
It's really great that this issue has been covered in the past but, unfortunately, everything that was written is currently obsolete due to change in Joomla versions.
I referred you to a link to DjTrail RewriteRule:
RewriteRule ^([^/]+)/?$ /index.php?option=com_comprofiler&task=userProfile&user='$1' [L]
This good old rewrite rule has served thousands of CB users for years, and apparently now its time
is up.
I think it should have a tiny tweak to it to make it compatible with 1.5.14.
Please don't send me to go search Google to find the answer... because it would not work for someone
who doesn't have a vast knowledge how to create rewrite ruls.
Trust me, I have spent days trying to change the rule in my .htaccess, and the best I could do is to
display the correct short SEF URL in ALL pages, including none profile ones.
the change needed could have something to do with the fact that now the url needs to display username
at the end, and not user_id.
It could be something regarding the omission of the single quotes that was mentioned (altough I tried to
omit the single quotes from '$1' and it didn't help).
Could well be the order of the rules within the .htacess file, or could be any other factor.
Although everyone has the same default .htacess Joomla SEF rules in that file, and whatever
I see is what you see when using Joomla Core SEF with CB ), still, here is the part
of the Joomla SEF rules:
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
I think it would be highly helpful for everyone if someone from the CB team would test the implementation of the correct RewriteRule using Joomla core SEF on profile pages linked, for example, from comment systems (that link to CB profile pages), or from articles, or from any other non CB component, and see how to omit:
component/comprofiler for once and for all from the Joomla SEF URLs.
Then, posting the solution (that is actually relavent to the year 2009) on FAQ would hopefully help prevent so many people from going on and on about the same URL issue.
All we need is to see exactly how the WHOLE above Joomla core SEF section should look like now
with the correct RewriteRule placed within it.
I hope the CB team would be kind enough to help, and won't send me now to "search Google"...
Thank you very much,
(p.s. a nice donation would be gladly made for CB help)
Post edited by: tisdale, at: 2009/10/02 15:27