[eluser]frist44[/eluser]
DNS redirection would be on a DNS server itself, which can be done depending on who hosts your DNS. If you're talking about hitting your app and then redirect the URL, this can be done with Apache's Modrewrite. You could also theoretically do it in your app, although it doesn't seem to make much sense because it would be a lot of setup for a simple thing that the former two options do very well.
But is it posssible in the browser you have name1.domain.com but the background domain.com/name1 but in the browser it's still name1.domain.com?
can i do this in codeigniter?