Ever wanted to use the next url?
It would be better than yourdomain.com/pg/profile/username.
You can make it happen by editing your .htaccess file.
At the bottom of the file you find the <IfModule mod_rewrite.c> section.
Add at the end of this section the next line
RewriteRule ^([A-Za-z0-9\_\-]+)$ http://%{HTTP_HOST}/pg/profile/$1 [R]
Now you can access your profile with a short url
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.
Hi Jeroen,
the problem occurs with those sites installing elgg not on the root directory.
For example, site.com/elggdirectory
for those, they have to edit the line to make it
RewriteRule ^([A-Za-z0-9\_\-]+)$ http://%{HTTP_HOST}/elggdirectory/pg/profile/$1 [R]
Also, the shortening of the username occurs only when I type it manually at the address bar
i.e. the profile link on any place at the site e.g. topbar, didn't change and still is /pg/profile/username
Thanks
Great. I always wanted to have it. Works very fine.
where is this .htaccess file located?
very nice :)
I was looking for something like that :)
merci Jeroem