...

View Full Version : Argh! Mod_rewrite to /home/



JordanW
05-25-2008, 03:36 PM
I'm currently using:

RewriteEngine on
RewriteRule ^uploads/(.*)/(.*)/(.*)$ /home/interact/uploads/$1/MyDocuments/$2/$3 [NC,L]

Hoping to redirect a file to OUTSIDE of the public area of the site where the files are securely held. So typing:

http://subdomain.xx.com/uploads/[username]/[folder]/[song].mp3
would load /home/xxxx/uploads/[username]/MyDocuments/[folder]/[song].mp3


But I get a 404 Not Found error. Is the redirect going to: subdomain.xx.com/home/xxxx/uploads...?


Cheers guys,

~Jordan

abduraooft
05-25-2008, 03:38 PM
But I get a 404 Not Found error. Is the redirect going to: subdomain.xx.com/home/xxxx/uploads...? Check the error log, and see the entry for this error.

JordanW
05-25-2008, 04:17 PM
The error shown is only that I don't have a 404 error page. But from previous attempts there are entries which state:

[Sun May 25 10:14:01 2008] [error] [client xx.xxx.xxx.xx] File does not exist: /home/xxx/public_html/home


So i'm guess it's appending to the public files... and it doesn't understand "../". Are there any ways of doing this? Base Url stuff?

~Jordan



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum