Welcome Guest, Not a member yet? Register   Sign In
Usernames as subdomains and a root website
#12

[eluser]CodeMagician[/eluser]
Hey whizzer, I'm curious as to how you accomplished the task.

My idea to solve it is:
- Set the Blog controller as the main controller.
- Setup a user called "www"
- If the subdomain is "www" or "", then load your #1 user website.
- - If user #1 and the request is "/" then load "index.html" (OR, just redirect to another controller)

? does it bother you to run your main site in a sub-folder, or controller?

I was also thinking of doing this and just having the main controller detect for user#1 and special page name requests to load the appropriate views. Eg. user#1 + contact-us = a Special View (not a blog view)

I'd really interested in hearing from people that have this figured out Undecided


Messages In This Thread
Usernames as subdomains and a root website - by El Forum - 07-24-2010, 02:53 PM
Usernames as subdomains and a root website - by El Forum - 07-24-2010, 07:27 PM
Usernames as subdomains and a root website - by El Forum - 07-28-2010, 05:29 AM
Usernames as subdomains and a root website - by El Forum - 07-28-2010, 05:43 AM
Usernames as subdomains and a root website - by El Forum - 07-28-2010, 08:14 AM
Usernames as subdomains and a root website - by El Forum - 07-28-2010, 09:03 AM
Usernames as subdomains and a root website - by El Forum - 07-28-2010, 09:19 AM
Usernames as subdomains and a root website - by El Forum - 07-28-2010, 09:55 AM
Usernames as subdomains and a root website - by El Forum - 07-28-2010, 12:16 PM
Usernames as subdomains and a root website - by El Forum - 07-28-2010, 12:29 PM
Usernames as subdomains and a root website - by El Forum - 07-29-2010, 03:23 AM
Usernames as subdomains and a root website - by El Forum - 08-11-2010, 05:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB