Direct Link Download url, status url and delete url -404-

trevorefreeman3720

New Member
YetiShare User
Mar 9, 2014
2
0
0
Everything works when I upload it however when I try to download it just gives me the frustrating 404 error file not found. So I went through the forums and tried to find every possible solution. I have already checked and have the htaccess files in both the sub directory and normal file directory. I have also tried changing rewrite base to /upload/ (where I have installed my file hosting script). I have also check mod_rewrite and downloaded a php file to test it. link: http://www.optimalupload.com/upload/check_mod.php I have also tried to check using http://www.optimalupload.com/upload/check_host.php . Nothing has worked so far. I am using my own dedicated sever controlled by SSH with Lamp installed and all other mods to run the scripts. Here is my website address:
www.optimalupload.com. I will upload my htaccess files.. Can anyone help me? I can upload anything you need or provide you with control if your an admin.

Here is an example log from your script: continues all the way down with the same pattern:

===========================================================
2014-03-18 03:34:52 - Upload request to uploadHandler.php: Array
(
[r] => www.optimalupload.com
[p] => http
[_sessionid] => qbtq4utn1642i41stjfqu4f5p0
[cTracker] => 4928fdf4c87cf65b811d0013aea2773a
[maxChunkSize] => 2092152
)

===========================================================
2014-03-18 03:40:16 - Upload request to uploadHandler.php: Array
(
[r] => www.optimalupload.com
[p] => http
[_sessionid] => qbtq4utn1642i41stjfqu4f5p0
[cTracker] => 4d2391164cca67c2c03ec199ac4d5c7f
[maxChunkSize] => 2092152
)

===========================================================

This is my access File located in the upload sub directory and the main / directory.


# override max php upload settings. Might not work on all servers
#php_value upload_max_filesize 4000M
#php_value post_max_size 4000M

# redirect www to non-www
# RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
# RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteEngine On
#RewriteRule . - [E=no-gzip]
RewriteBase /upload/
RewriteCond %{REQUEST_URI} ^(.+)\~s$
RewriteRule ^(.*) stats.php?u=$1 [L]
RewriteCond %{REQUEST_URI} ^(.+)\~d$
RewriteRule ^(.*) delete_file.php?u=$1 [QSA,L]
RewriteCond %{REQUEST_URI} ^(.+)\~i$
RewriteRule ^(.*) share_file.php?u=$1 [QSA,L]
RewriteCond %{REQUEST_URI} ^(.+)\~f$
RewriteRule ^(.*) view_folder.php?f=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !\.html$
RewriteRule ^(.*) file_download.php?u=$1 [QSA,L]

RewriteRule ^(.*).html$ $1.php [QSA,L]
 

uprv

New Member
YetiShare User
Jul 31, 2013
10
0
0
wupload.eu
Re: Direct Link Download url, status url and delete url -404

I guess you use Apache.

Anyway, normally the .htaccess should work.

Let me give you a short info about the rewrite base.

If the script is located in the domain root folder an is accesable over http://yourdomain.tld the base has to be /.
If it is located in a sub directory, it has to be /FOLDERNAME.

The .htaccess has not to be located in the root directory, it only has to be in the scripts folder.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Re: Direct Link Download url, status url and delete url -404

As sent on email this morning:

The .htaccess file looks good. Can you check these 2 things:

- mod rewrite is definitely enabled via your host?
- AllowOverride in Apache is set to allow .htaccess files.

If mod rewrite is working, .html urls like this should also work:

http://www.optimalupload.com/upload/upgrade.html