View Single Post
Old 09-23-2010, 07:52 AM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,432
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Adding the "type" param to hrefs is only a browser fallback option and won't override any server prefs that may already be defined.

Any of the AddType or AddHandler statements may be added to the .htaccess file (in the folder where the file is going to be served from--or the web root folder) to override server settings in the case where you don't have full control of your server configuration. Something like:
AddType application/x-mobipocket-ebook .mobi
should do the trick.

NOTE: this is all assuming your web server is Apache and your provider is not preventing Overrides. Don't mess if you don't know, as improperly written .htaccess files can render your site unusable.

EDIT: render it unusable until you fix or delete the bad .htaccess file--didn't mean to make it sound as drastic as I did.

Last edited by DiapDealer; 09-23-2010 at 08:22 AM. Reason: typo
DiapDealer is offline   Reply With Quote