Re: Apache RewriteEngine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux