Jump to content

Htaccess Setting To Include Sub Folder


ameisez
 Share

Recommended Posts

Hi,is it possible to make one .htaccess file on my root folder and settings will be applied all sub folders.I want fo force download mp3 files on my folder. I google and found that this htaccess code will do the trick.

<Files *.mp3>ForceType application/octet-streamHeader set Content-Disposition attachment</Files>

But I have many subfolders, I want, if possible, to just create one htaccess file to put in the root folder and settings will be applied to sub folders.Thanks

Edited by green_apple
Link to comment
Share on other sites

The .htaccess file in your account 'root' folder will (or should) apply to all sub-folders unless the .htaccess file of the sub-folder over-rides the .htaccess in the root. If you want the 'root' .htaccess to be the dominate one, simply do not create one on the sub-folder.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...