Re: Re: what do i put in .htaccesss to achieve this

From: Date: Wed, 17 Apr 2002 05:30:57 +0000
Subject: Re: Re: what do i put in .htaccesss to achieve this
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93292@lists.php.net to get a copy of this message
check this out - works like a charm http://www.phpbuilder.com/columns/tim20000526.php3 Pop this in your root htaccess <Files users> ForceType application/x-httpd-php3 </Files> Create file "users" (no extension) In the users file explode() $REQUEST_URI or $PATH_INFO to get your variables for the script. olinux --- Uchendu Nwachukwu <newsreply@unndunn.com> wrote: > Try this: > > RewriteEngine On > Options +FollowSymlinks > RewriteBase / > RewriteCond %{HTTP_HOST} whatever.yoursite.com > RewriteCond %{REQUEST_URI} > !path/to/desination/folder/ > RewriteRule ^(.*)$ path/to/destination/folder/$1 [L] > > That should do it. > > -- > Uchendu Nwachukwu > newsreply AT unndunn DOT com - www.unndunn.com > > > "Adrian Murphy" <adrian.murphy@2020tourism.com> > wrote in message > news:004b01c1e486$3c0cb1a0$02646464@ade... > Hi, > I use wildcard dns to point all requests at the root > e.g > whatever.mysite.com goes to root etc.however i'll > like to redirect these > requests to mysite.com/users/sites/whatever > so what do i put in the .htacces file bearing in > mind that i want requests > just for mysite.com to be left alone. > thanx > adrian > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/

« previous php.general (#93292) next »