On 2/18/06, Ministério Público <arquivomortovirtual@xxxxxxxxx> wrote: > > I need a way to retrieve a URL typed by anyone who is visiting my site so > that I can redirect someone who typed for exemple www.site.com, to one of > the folders I have in the directory, and if that user typed > www.othersite.com he would be sent to another folder. I thank any insight. > Rodrigo Hi Rodrigo, Not really a PHP questions, but you can most likely make a local .htaccess file to take care of this, even in a shared hosting environment. I don't know the details, but here is an example I copied to make all www.domain.comand domain.com requests get grouped together for page ranking, etc. Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www.kimbriggs\.com RewriteRule ^(.*)$ http://kimbriggs.com/$1 [R=permanent,L] cheers, -- http://kimbriggs.com