Using Rewrite

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

 



Hello Friend of the list, 

I am here with little problem that I could not settle after a while. 

The situation is this: I have a directory with some content and save 
time to write the full address of each of them occurred to me to take a direction, 
but when I test the url of the files sends me to root directory of the site. 

Part of the code .htaccess root of 

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

When treated with the url http://files.example.com/archivo.txt , this send me to the server root, 
and the log appears the following File does not exist: /home/example/public_html/archivo.txt

If I understand, I ask you to help me solve this, I thank you in advance your help
.

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