the-botman Posted May 24, 2010 Share Posted May 24, 2010 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 More sharing options...
kenrbnsn Posted May 24, 2010 Share Posted May 24, 2010 What are you trying to do here? Ken Link to comment https://forums.phpfreaks.com/topic/202718-htaccess/#findComment-1062558 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.