Re: Problem opening nwc file edited in 2.5.4. when opened from website
Reply #4 –
Adding a .htaccess file is often something you can do yourself, especially if your host is allowing you to script your web site with PHP. Are you sure that they are blocking you from using .htaccess?
You can also solve this from PHP, but it is not as elegant. Here is a simple (untested) function that might give you some ideas:
function DownloadNWCFile($fname)
{
Header("Content-Type: application/x-nwc",true);
Header("Accept-Ranges: none",true);
Header("Content-Length: ".filesize($fname));
readfile($fname);
exit;
}