Log in

View Full Version : Downloading a Map/.htaccess


MiceHead
12-12-2003, 11:49 AM
I'm trying to allow users to download map files from my website. These are plaintext ASCII, so when I access them via browser, they are simply show as straight text.

I'd like the browser to ask the user if s/he'd like to save this, so I've tried to force the MIME types on these in the .htaccess file:


AddType application/octet-stream .def
<Files ~ "*.def">
order allow,deny
allow from all
</Files>


However, the files still pop up as text. Anyone have suggestions as to how I can force this to save-as rather than display?

BrewKnowC
12-12-2003, 12:31 PM
I believe that your code is correct except maybe:

AddType application/octet-stream def

don't use .def just def

let me know if this works

MiceHead
12-14-2003, 07:20 AM
Bingo! Thanks very much.