Jump to content

htaccess


the-botman

Recommended Posts

what am i doing wrong here, when i try and download a video.3gp it says 404 error

 


function Get_Htaccess() {
$Br = "";
$Result = "RewriteBase /".$Br;
$Result .= $Br;

$Result .= "AddType image/x-jg .art".$Br;
$Result .= "AddType image/tiff .tiff".$Br;

$Result .= "AddType video/3gpp .3gp".$Br;
$Result .= "AddType video/mp4 .mp4".$Br;
$Result .= "AddType video/mpeg .mpeg".$Br;

$Result .= $Br;
$Result .= "# supress php errors".$Br;
$Result .= "php_flag display_startup_errors off".$Br;
$Result .= "php_flag display_errors off".$Br;
$Result .= "php_flag html_errors off".$Br;
$Result .= "php_value docref_root 0".$Br;
$Result .= "php_value docref_ext 0".$Br;
$Result .= $Br;
$Result .= "<Files .htaccess>".$Br;
$Result .= "order allow,deny".$Br;
$Result .= "deny from all".$Br;
$Result .= "</Files>".$Br;
$Result .= $Br;
$Result .= "# disable directory browsing".$Br;
$Result .= "Options All -Indexes".$Br;
$Result .= $Br;
$Result .= 'ErrorDocument 403 "Error - Access Denied."'.$Br;
$Result .= 'ErrorDocument 404 "Error - Page not found."';

return $Result;
}[/code]

Link to comment
https://forums.phpfreaks.com/topic/202718-htaccess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.