Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

subdomain for each user profile

edited July 2006 in Vanilla 1.0 Help
Is it possible to have a subdomain (or an apparent subdomain) for each user on a Vanilla board? I think it would just be a htaccess issue, but I have never really used it before and don't know if it is possible.

i.e. -> would point to my user page.



  • Options
    Well, YTMND does it, so it's certainly possible, but I would imagine your httpd.conf/.htaccess would get pretty cluttered up.
  • Options
    The main issue with that is that the account page does not currently take a username as a parameter, so while you could certainly translate to , it would have no idea what to do with that.

    It is probably easy to make it accept names instead of id numbers, but then you have to get your hands dirty.
  • Options
    lechlech Chicagoland
    you would also probably need to reconfigure your dns for wildcarding under the circumstances or at least find a way to trick the server into thinking that the subdomain exists in the first place.
  • Options
    Sorry yeah I just tend to do that by default.
  • Options
    Hmm there is a pretty "hacky" sort of way to do it. I once tried a similar thing. I just modified the 404 error page (using .htaccess to specify a custom one) to be a php script that redirects to a different page. I did that quite a while ago and don't remember too well, but I was able to extract some information using the $PHP_SELF variable - which should still point to what the user entered - in your case You could then parse that string and extract the part in front of "" and redirect to "" using this little php instruction: header("Location:"); BUT: Please consider this to be a rather dirty way, even though it might just work. I stopped using the method because Internet Explorer does not display error pages by default but replaces them with its own error page - so this might not work in IE...
This discussion has been closed.