I'm stuck .htaccess

Discussion in 'Apache' started by tornad0, Oct 1, 2007.

  1. #1
    I own haisus.net
    when I login throught ftp I must upload my files in my home directory, www
    ok so I uploaded the "rapidshareit" script there
    I upload a file and everything is working fine and the server return me the "direct download link"
    This direct download link does not working in browser says
    Not Found
    The requested URL /7545498 was not found on this server.

    What I must do in this case?

    Thank you
     
    tornad0, Oct 1, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check to make sure your .htaccess file WAS uploaded, it's a file that starts with a . , so it might not of been included if you done a select all.


    Another Possiblely is that the file you updated changed the format of the links, and the new format is incompatible with the old format.
     
    powerspike, Oct 1, 2007 IP
  3. aspire

    aspire Well-Known Member

    Messages:
    4,003
    Likes Received:
    76
    Best Answers:
    0
    Trophy Points:
    175
    #3
    if you still are not able to fix the problem, hire a code writer here on DP.
     
    aspire, Oct 1, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    *cough*Post your .htaccess code.*cough*
     
    Nintendo, Oct 2, 2007 IP
  5. tornad0

    tornad0 Peon

    Messages:
    94
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I uploaded .htaccess
    When I login in my ftp account the main upload script is located in www directory.. I have some other host at godaddy and when I am logging I don't must to go to other directory
    my .htaccess file is

    <Files *.txt>
    order allow,deny
    deny from all
    </Files>

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^/]+)/?$ download.php?file=$1 [L]
     
    tornad0, Oct 3, 2007 IP
  6. tornad0

    tornad0 Peon

    Messages:
    94
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    my website is hosted to netfirms.. so I found out that .htaccess was disabled.. now I enable it but still doesn't work
    "upload script" is uploaded in /www/haisus.net directory but still
    when I upload something is working but when I am trying to download it doesn't work it returns me this error:
    Not Found
    The requested URL /haisus.net/w0112/d16/s45/b02c5c5d/www/haisus.net/download.php was not found on this server.
    I dunno understand why download.php was not found because he is located in /www/haisus.net/ directory

    help me please
     
    tornad0, Oct 3, 2007 IP
  7. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #7
    /haisus.net/w0112/d16/s45/b02c5c5d/www/haisus.net/download.php

    doesn't look like a correct URL at all!!

    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^.]+)$ download.php?file=$1 [L]

    though I'm not sure if that'll fix it.
     
    Nintendo, Oct 3, 2007 IP
  8. GMROCKS

    GMROCKS Active Member

    Messages:
    648
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #8
    ever thought that your webhost might not support htaccess?
     
    GMROCKS, Oct 3, 2007 IP
  9. tornad0

    tornad0 Peon

    Messages:
    94
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    finally I solved
    in .htaccess I put ../../../../../../ before download.php :)
    not it works:D

    do not buy hosting from netfirms :)
     
    tornad0, Oct 9, 2007 IP
  10. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #10
    No.. do not think I will.. after seeing that path to your main download.php file.

    That looks like the file is in a sub folder on a sub domain of a domains sub domain.. :eek:
     
    Boulder, Oct 9, 2007 IP
  11. poet

    poet Peon

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Old thread, but in case people find this via Google.

    You need to put a forward slash before the destination pattern.

    So it looks like this:
    /download.php?file=$1

    Netfirms sucks!
     
    poet, Jan 11, 2008 IP