Forums | Mahara Community
Support
/
instead of a user-view-id using the name as an alias
19 August 2011, 7:27
Hello
is it possible to use an alias like the name of the owner of the profile instead of using id=x like https://mydoamin.eu/mahara/user/view.php?id=x in the URL of a profile-site or a view?
best regards and thnks for an answer,
michael
21 August 2011, 17:05
Michael, I think Gregor Anzelj does something similar to what you are after on his site. Have a look at this thread:
22 August 2011, 9:14
Hello Richard,
thank you for your hint. I've tried the suggestion with the profile and the .htaccess file like Gregor Anzelj discribed in his forum-post. But unfortunately it doesn't work.
If I'am using the URL http://localhost/mahara/user/username the error-log-file shows me File does not exist or if I'am using http://localhost/mahara/profile/username script '/var/www/mahara/profile' not found or unable to stat.
Thanks & Regards,
michael
22 August 2011, 17:23
Hi Michael, I just tried it myself. The ForceType directive didn't work with my apache setup either, but SetHandler worked:
<Files profile>
SetHandler application/x-httpd-php
</Files>
Of course there's still the matter of rewriting all Mahara's internally generated urls to be friendly, but that's a lot of work.
23 August 2011, 4:27
Hello Richard,
thank you for your answer. It realy work's. ;-)
Greatings,
michael