Re: Using Rewrite

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

 



ok, then the code would be 

RewriteCond %{HTTP_HOST} ^files\.example\.com$ [NC] RewriteRule ^(.*)$ /files/public$1 [L]

or am i wrong?


2009/8/12 Eric Covener <covener@xxxxxxxxx>
On Wed, Aug 12, 2009 at 8:12 AM, Alexis<rab4585@xxxxxxxxx> wrote:
> Hello Friend of the list,
> RewriteBase /files/public
> RewriteRule ^(.*)$ $1 [L]
>
> When treated with the url http://files.example.com/archivo.txt

The RewriteBase isn't a base of what you want to rewrite to, it needs
to reflect the base of where the htaccess itself is and is a factor in
what you're matching as well.


--
Eric Covener
covener@xxxxxxxxx

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




--
Alexis Beltran
skype: blexis.sv
blog: http://blexis.net

[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