yabsoft
05-14-2007, 12:23 PM
Download url /file/id_filename.html shows a 404 page!
This error is usually caused by the .htaccess on your server:
Solutions:
1. Please make sure the .htaccess in the distribution is uploaded to your server with scripts.
The correct .htacess of MFHS v1.2 should contains(You can get it from latest distribution in client area):
RewriteEngine on
##point to installation directory
##if it is the root dir,enter /
##else /otherdir
RewriteBase /
RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{8,12})$
RewriteRule ^$ download.php?id=%1
RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{12,16})$
RewriteRule ^$ delete.php?id=%1
RewriteRule ^file/([0-9]+)/(.*)$ download.php?id=$1&type=2 [L]
RewriteRule ^([a-z]{2})/file/([0-9]+)/(.*)$ download.php?setlang=$1&id=$2&type=2 [QSA,L]
RewriteRule ^folders/([0-9]+)/(.*)$ folders.php?fid=$1&%{QUERY_STRING} [L]
RewriteRule ^([a-z]{2})/folders/([0-9]+)/(.*)$ folders.php?setlang=$1&fid=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^([a-z]{2})/top/([0-9]+)\.html$ top.php?setlang=$1&s=$2&type=1 [L]
RewriteRule ^top/([0-9]+)\.html$ top.php?s=$1&type=1 [L]
RewriteRule ^([a-z]{2})$ ?setlang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/$ ?setlang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/(.*)\.php$ $2.php?setlang=$1 [QSA,L]
2. The .htaccess require mod_rewrite module to work. If the url still doesn't work, please contact your hosting if mod-rewrite module is installed on your server.
3. If you install the script at sub directory, you should edit .htaccess to change
RewriteBase / to
RewriteBase /yoursubdir
This error is usually caused by the .htaccess on your server:
Solutions:
1. Please make sure the .htaccess in the distribution is uploaded to your server with scripts.
The correct .htacess of MFHS v1.2 should contains(You can get it from latest distribution in client area):
RewriteEngine on
##point to installation directory
##if it is the root dir,enter /
##else /otherdir
RewriteBase /
RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{8,12})$
RewriteRule ^$ download.php?id=%1
RewriteCond %{QUERY_STRING} ^d=([a-zA-Z0-9]{12,16})$
RewriteRule ^$ delete.php?id=%1
RewriteRule ^file/([0-9]+)/(.*)$ download.php?id=$1&type=2 [L]
RewriteRule ^([a-z]{2})/file/([0-9]+)/(.*)$ download.php?setlang=$1&id=$2&type=2 [QSA,L]
RewriteRule ^folders/([0-9]+)/(.*)$ folders.php?fid=$1&%{QUERY_STRING} [L]
RewriteRule ^([a-z]{2})/folders/([0-9]+)/(.*)$ folders.php?setlang=$1&fid=$2&%{QUERY_STRING} [QSA,L]
RewriteRule ^([a-z]{2})/top/([0-9]+)\.html$ top.php?setlang=$1&s=$2&type=1 [L]
RewriteRule ^top/([0-9]+)\.html$ top.php?s=$1&type=1 [L]
RewriteRule ^([a-z]{2})$ ?setlang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/$ ?setlang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/(.*)\.php$ $2.php?setlang=$1 [QSA,L]
2. The .htaccess require mod_rewrite module to work. If the url still doesn't work, please contact your hosting if mod-rewrite module is installed on your server.
3. If you install the script at sub directory, you should edit .htaccess to change
RewriteBase / to
RewriteBase /yoursubdir