Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Location
    United Kingdom
    Posts
    159
    Thanks
    2
    Thanked 15 Times in 15 Posts

    Argh! Mod_rewrite to /home/

    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
    Remember The Thank You Button Is Your Friend =]

    [ PHP / Javascript / VisualBasic / HTML / DHTML / CSS / .NET / MySQL ]

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    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.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Jul 2007
    Location
    United Kingdom
    Posts
    159
    Thanks
    2
    Thanked 15 Times in 15 Posts
    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
    Remember The Thank You Button Is Your Friend =]

    [ PHP / Javascript / VisualBasic / HTML / DHTML / CSS / .NET / MySQL ]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •