I would like to achieve the following:
http://www.mydomain.com - No change
or
http://mydomain.com - No change
http://foo.mydomain.com
to
index.php?option=com_webpage&username=foo
and
http://foo.mydomain.com/page1.htm
to
index.php?option=com_webpage&username=foo&page=1
Any help would be appreciated.