Hello Igor, I tried your suggestion but did not because I want people to view files in /wp-content/media/ only if they have a cookie( if they login). The suggested RedirectMatch ^/wp-content/media/ / <-- won't let me see files in /wp-content/media even if I succefully log in. I tried this furum, is exactly what I want to do however the last http://www.webmasterworld.com/forum92/424.htm rewriteCond %{HTTP_COOKIE} uin rewriteRule ^/.*$ /main.html [L does not seem to function for me, any ideas? Thanks, -motty -----Original Message----- From: Igor GaliÄ [mailto:i.galic@xxxxxxxxxxxxxx] Sent: Thursday, January 06, 2011 8:23 AM To: users@xxxxxxxxxxxxxxxx Subject: Re: Apache RewriteEngine ----- "Eric Covener" <covener@xxxxxxxxx> wrote: > On Thu, Jan 6, 2011 at 10:40 AM, motty.cruz <motty.cruz@xxxxxxxxx> > wrote: > > Hello, > > > > I have Apache 2.2 installed on FreeBSD 8.1, and would like to > restrict > > content from /wp-content/media to be re-direct to / (root of > directory). Any What exactly does that actualy mean? > > suggestions, of how to best accomplish that goal? > > > > If you want them all to go directly to the root > > RedirectMatch ^/wp-content/media/ / > > If the files are actually under the root and you want to preserve > what > came after media/: > > Redirect /wp-content/media/ / > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx -- Igor GaliÄ Tel: +43 (0) 664 886 22 883 Mail: i.galic@xxxxxxxxxxxxxx URL: http://brainsware.org/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx