Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9219693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:10:25+00:00 2026-06-18T03:10:25+00:00

I have download directory on apache webserver. Files in this directory have specific extensions.

  • 0

I have download directory on apache webserver. Files in this directory have specific extensions. For example *.yyy and *.zzz. But all these files are renamed .zip or .tar.gz

I’ve tested in different brawsers and havn’t got any problems.

But some users tell that they get source of packages, not download.

I’ve created.htaccess

AddType application/zip .zzz
AddType application/x-gzip .yyy

But when I try to download aaa.yyy in MS Internet Explorer it try to save not aaa.yyy but aaa.gz

How to force browsers download files and not to change extensions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:10:27+00:00Added an answer on June 18, 2026 at 3:10 am
    <FilesMatch "\.(zzz|yyy)$">
      ForceType application/octet-stream
      Header set Content-Disposition attachment
    </FilesMatch>
    

    Force type tell browsers that you dont know file type. So they are not going to do any thing stupid. Second line will tell them to download this file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried to download images to a directory but now I want to
I have a system set up to download jad files on users' Blackberries, but
I have .doc and .zip files in download directory on my server. whoever visit
When I have download sample code from this link and than try to build
I have already download and install this package to support HTML5 input type http://support.microsoft.com/kb/2468871
I have this code but in my Android Emulator 4.2 I get the follow
My webserver is Apache (I don't have admin rights over it though). In my
I need to send all requests for the directory home/alphauser to backend/alphauser, but not
I have installed apache and mod_wsgi, and all the web pages are retrieved and
I have created this php script which displays the contents of a designated directory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.