if you want to force certain kind of files to pop up the save as dialog box, you have to add the AddType directive with the value application/octet-stream to the .htaccess file like this:
and that’s all, now everything works fine
if you want to force certain kind of files to pop up the save as dialog box, you have to add the AddType directive with the value application/octet-stream to the .htaccess file like this:
and that’s all, now everything works fine
To enable mod_rewrite on Ubuntu is pretty easy what we have to do is, first we enable the apache module for mod rewrite with this line.
After that we have to edit the file /etc/apache2/sites-avalible/default, then we look for this:
And then we replace “AllowOverride None” by “AllowOverride All”, this line tells apache to read the .htaccess file, that is the file where we will put our rewrite rules.
I have also taked out the MultiViews option since it was messing with my rewrite rules
finally we just reload apache
now we have pretty urls for our sites. :)