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

[eluser]loosetops[/eluser]
Checkout Phil Sturgeon's Template library. With that you can load different "sites"/layouts. You can do this with or without hooks.
#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




Theme © iAndrew 2016 - Forum software by © MyBB