Results 1 to 3 of 3
  1. #1

    X-Send file and mod_rewrite

    url.rewrite-once = (
    "^/view/(.+)$" => "/view.php?f=$1",
    "^/download/(.+)$" => "/download.php?f=$"
    )
    header( 'Content-Disposition: attachment; filename="' . addslashes($name). '"' );
    header( 'X-LIGHTTPD-send-file: ' . $file_on_harddisk);
    I'm using Lighttpd 1.5.0 and I've an encountered a peculiar problem. When i use the rewritten URL it won't send the file. When I use download.php?f=, it sends the file. Thoughts?
      0 Not allowed!

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    You mean the url domain.com/view.php is not loading fine?
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android
      0 Not allowed!

  3. #3
    Join Date
    Jul 2002
    Location
    Tasmania, Australia
    Posts
    34,798
    Closed by request.
    If you donít like the road youíre walking on, start paving a new one.
      0 Not allowed!

Posting Permissions

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