Question

I have a custom .reg file, which is used to apply registry adjustments. Making it a download is causing Internet Explorer ad FireFox to treat it as a media file, or download it as an MP3?

Has anyone seen this before?

Was it helpful?

Solution

Figured it out. Needed to add MIME type support to my Apache Web Server:

Using the following configuration:

AddType text/plain .reg

OTHER TIPS

I changed .htaccess to:

AddType text/text .reg

It did the trick for Firefox and IE. In IE I didn't even have to download the file. Clicking it sent it directly to the registry (after ample warnings). When I changed it to text/plain it appended .txt in Firefox.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top