José de Menezes Soares Neto wrote:
Hi friends,

I would like to create a script with ZF that:

1. Access www.username.site.com <http://www.username.site.com>
2. Prints username profile

I think I need to create an controller USER with action profile (http://www.site.com/user/profile/username), and, somehow link it to www.username.site.com <http://www.username.site.com> by .htaccess...

But I don´t know how... any suggestions?

If you want to achieve what you described, use htaccess rules similar to those 
(untested):

RewriteEngine On

RewriteCond %{HTTP_HOST} www\.(.+)\.site\.com
RewriteRule ^(.*)$ http://www.site.com/user/profile/%1?path=$1

José

--
Michał Minicki aka Martel Valgoerad | [EMAIL PROTECTED] | 
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." --
Floyd Dell

Reply via email to