Kévin Dunglas [email protected] - http://lapin-blanc.net - 2010 - GPL v2
Creates friendly URLs for user's profiles as subdomains. Ie: http://example.com/pg/profile/user will become http://user.example.com
- 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 thephp.ini
file to something like ".yourdomain.com")
- 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.
- If you are using Apache virtual hosts, add every subdomains to the Elgg vhost like this: <VirtualHost *> ServerName example.com ServerAlias *.punxrezo.net [...]
- 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".
- Enable the profile_friendlyurl plugin from the Elgg administration.
- In the plugin settings form set the domain name to use.