| View previous topic :: View next topic |
| Author |
Message |
spyer
Joined: 27 Mar 2008 Posts: 28
|
Posted: May 10, 2008 6:12 pm Post subject: [PROBLEM] File Not Found!! |
|
|
Good day,
i'm having some problems with my website..
when i uploads a file for example: fileA.zip
after the upload is complete i get a link like this
http://www.website.com/abcd12345/fileA.zip.html
when i click on the link i'll get a message "No Such File".
in the file list like "my files" or "admin file management" i can see the file, also in the FTP i can see the file "abcd12345" in
| Code: | | /var/cgi-bin/uploads/00000/abcd12345 |
what seems to be the problem?
i really need the help.. thanks |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: May 12, 2008 6:13 am Post subject: |
|
|
I think it's problem with mod_rewrite.
Add this to the .htaccess in public_html, below "RewriteEngine on":
| Code: | RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([0-9A-Za-z\-_]*)/?([0-9A-Za-z]{12})(/[^\/]*|)(\.html?|$)$ /cgi-bin/index.cgi?op=download1&usr_login=$1&id=$2&fname=$3 [L] |
|
|
| Back to top |
|
 |
spyer
Joined: 27 Mar 2008 Posts: 28
|
Posted: May 12, 2008 3:01 pm Post subject: |
|
|
thx m8, that fixed it  |
|
| Back to top |
|
 |
Namaless
Joined: 20 Apr 2008 Posts: 107 Location: Italy
|
Posted: May 13, 2008 7:43 pm Post subject: |
|
|
| PilgrimX182 wrote: | I think it's problem with mod_rewrite.
Add this to the .htaccess in public_html, below "RewriteEngine on":
| Code: | RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([0-9A-Za-z\-_]*)/?([0-9A-Za-z]{12})(/[^\/]*|)(\.html?|$)$ /cgi-bin/index.cgi?op=download1&usr_login=$1&id=$2&fname=$3 [L] |
|
Need update my site??
Regards. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: May 14, 2008 5:29 am Post subject: |
|
|
| You can update, yes. |
|
| Back to top |
|
 |
Namaless
Joined: 20 Apr 2008 Posts: 107 Location: Italy
|
Posted: May 14, 2008 6:42 am Post subject: |
|
|
| PilgrimX182 wrote: | | You can update, yes. |
Thanks. Regards. |
|
| Back to top |
|
 |
ttanemori
Joined: 30 May 2008 Posts: 8
|
Posted: Jun 10, 2008 8:01 pm Post subject: I am also in trouble with the secondary server |
|
|
I have an exactly same problem, but this happens only to my secondary (extra File Server) server.
http://my_second_domain.com/files/5/file_name.zip
Because it is the secondary server, "public_html" does not have .htaccess.
Where should I edit?
Thank you. |
|
| Back to top |
|
 |
admin Site Admin
Joined: 22 Mar 2006 Posts: 130
|
Posted: Jun 11, 2008 9:43 am Post subject: Re: I am also in trouble with the secondary server |
|
|
| ttanemori wrote: | I have an exactly same problem, but this happens only to my secondary (extra File Server) server.
http://my_second_domain.com/files/5/file_name.zip
Because it is the secondary server, "public_html" does not have .htaccess.
Where should I edit?
Thank you. |
You need .htaccess from FS-dist folder. |
|
| Back to top |
|
 |
ttanemori
Joined: 30 May 2008 Posts: 8
|
Posted: Jun 11, 2008 6:50 pm Post subject: |
|
|
I am sorry, but I got confused. My "FS-dist" folder has two folders, cgi-bin and htdocs.
In htdocs, I can see only one folder, "files"
In the "files," I can see ".htaccess"
On my External File server, public_html has "files" and "cgi-bin." They are exactly same as what you gave me. In other words, .htaccess is in public_html/files/
I added code as advised above, but it still does not work.
http://www.blessingamerica.org/t6xf0aqjrbjo/DSC_0187.jpg.html
This will generate a link from my external file server. The created link does not work.
Any solution? |
|
| Back to top |
|
 |
|