Is there any way to make the url to a users profile shorter, maybe groups also?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
This question has been asked lately (Scratched head trying to remember where)
Its just a matter of modifying the rewrite rule in your htaccess file. Just do a search for it and hopefully you will find where but it was answered with how to.
put this before the </IfModule> tag in your .htaccess file
RewriteRule ^([A-Za-z0-9]+)$ pg\/profile\/$1
that's to make site.com/username and you can figure out the group part
Thanks Cim.
hey antifmradio, use this instead of the first one i gave you
RewriteRule ^([a-zA-Z0-9_-]+)$ pg/profile/$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ pg/profile/$1
and yes you have to post both of them, the reason why i'm telling you to replace the other one with this is because the first one doesn't support hyphens for some reason
no problem
I understand the RewriteRule for the user profile, but I'd like to know how to do the same thing for groups. The link to a group includes a number prior to the group name ...pg/groups/###/groupname. Could someone tell me what the RewriteRule is to access the group as we have above for the profile? Thank you in advance.
Could someone tell me what the RewriteRule is to access the group as we have above for the profile? Thank you.
groups can't be done via mod rewrite.
Dhrup, thank you. We had hopes.
problem is that guid# of group needs to go into url and htaccess has no idea ;(
will have to write a new index.php to search for group by name and goto group or else goto normal index
i described more details of this on hackerselggalaxy topic...
http://community.elgg.org/mod/groups/topicposts.php?topic=79757&group_guid=52477
- Previous
- 1
- 2
- 3
- 4
- 5
- Next
You must log in to post replies.