Re: Retrieve URL Typed

From: Date: Sat, 18 Feb 2006 19:22:36 +0000
Subject: Re: Retrieve URL Typed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-230696@lists.php.net to get a copy of this message
On 2/18/06, Ministério Público <arquivomortovirtual@gmail.com> 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

« previous php.general (#230696) next »