Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dunglas/Elgg-profile_friendlyurl
Creates friendly URLs for user's Elgg profiles as subdomains.
https://github.com/dunglas/Elgg-profile_friendlyurl
Last synced: 6 days ago
JSON representation
Creates friendly URLs for user's Elgg profiles as subdomains.
- Host: GitHub
- URL: https://github.com/dunglas/Elgg-profile_friendlyurl
- Owner: dunglas
- License: gpl-2.0
- Created: 2010-01-14T00:09:14.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2013-08-29T20:24:46.000Z (about 11 years ago)
- Last Synced: 2024-07-27T21:50:41.232Z (4 months ago)
- Language: PHP
- Homepage: http://lapin-blanc.net
- Size: 108 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Profile Friendly URL
===================
*Kévin Dunglas - http://dunglas.fr - 2010 - GPL v2*Creates friendly URLs for user's profiles as subdomains.
Ie: http://example.com/pg/profile/user will become http://user.example.comRequirements
------------
* Access to the configuration of your DNS server
* The Apache web server (either, you need to port the rewriting rules from the .htaccess file to the syntax supported by your web server)
* PHP installed as module (as CGI, or with some restricting Apache configurations, you need to set the `session.cookie_domain` param of the `php.ini` file to something like ".yourdomain.com")Install
-------
1. Add a wildcard entry to your DNS server. Every should point to the web server hosting the Elgg application.
You can add a Bind entry like: *.example.com. 3600 IN CNAME 10 www.example.com.
2. If you are using Apache virtual hosts, add every subdomains to the Elgg vhost like this:
ServerName example.com
ServerAlias *.punxrezo.net
[...]
3. Backup then replace the .htaccess file in the your root Elgg directory by the htaccess-dist file of the plugin directory.
Edit this new .htaccess file and replace all occurrences of "example.com" by something like "yourdomain.com".
4. Enable the profile_friendlyurl plugin from the Elgg administration.
5. In the plugin settings form set the domain name to use.