It appears that your website is located in a subdirectory of the $hostname website, so this setting may not work reliably.
If you have any issues, you may have better results using the profile address '$baseurl/profile/$nickname'.