Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2010, 04:24 PM   #16
jphphotography
Zealot
jphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud of
 
Posts: 107
Karma: 27246
Join Date: Sep 2010
Location: Saskatoon SK, Canada
Device: Kindle 3 6" 3G + wifi, Sony PRS-300, iTouch 4G, Galaxy S Vibrant
I asked my web host about this and they said the .htaccess file method will work. I'm unfamiliar with how these files work though, is it as simple as just dropping that line into a text file and naming it .htaccess?

ie all the file would contain is:
Code:
AddType application/x-mobipocket-ebook .mobi
And I can put this either in the folder with the ebooks OR the root of the website?

Thanks for all of the info everyone, I really appreciate it!
jphphotography is offline   Reply With Quote
Old 09-23-2010, 04:35 PM   #17
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,371
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You have it correct.

Just make sure that you're not overwriting an existing .htaccess file. Depending on how you're accessing it, it may be there, but hidden. Most ftp clients can be configured to show hidden files. If you have ssh access, the 'ls -la' command will show hidden files. If one already exists, just add the AddType line to it somewhere.

You may have to make sure the .htaccess file is saved with unix-style line termination.
DiapDealer is offline   Reply With Quote
Advert
Old 09-23-2010, 06:41 PM   #18
jphphotography
Zealot
jphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud of
 
Posts: 107
Karma: 27246
Join Date: Sep 2010
Location: Saskatoon SK, Canada
Device: Kindle 3 6" 3G + wifi, Sony PRS-300, iTouch 4G, Galaxy S Vibrant
YAY IT WORKED!!! I used notepad++ to make the .htaccess file just to be safe regarding the unix line termination issue.

Ok just for the sake of completeness here is what needs to be done

1) You need to make sure your server is running apache (if you're not sure ask your web host)

2) You need to create a file called .htaccess (I used notepad++, regular notepad might not handle the line terminations properly) and inside this file the place the following line:

Code:
AddType application/x-mobipocket-ebook .mobi
Save the file and make sure to choose "all file types" as the option when saving, in the end just make sure it didn't append a .txt extension to the end of the file.

3) In your FTP program make sure you enable "show hidden files", this way you can back up your previous .htaccess file just in case. Then copy the new .htaccess file to the directory you want to host the ebooks in.

4) Copy your .mobi files to the directory. If you want to create a simple menu page you can do so, standard hyperlinks will work when clicked on via the Kindle.

NOTE: As mentioned by other people in this thread it is advisable to just drop this .htaccess file into the directory you're hosting the ebooks and not to touch the .htaccess file in the root directory of your site.

Example:

www.mywebsite.com/ebooks/
In this directory you'd have all of your .mobi books and .htaccess file


Thanks for the help everyone!!!!
jphphotography is offline   Reply With Quote
Old 09-23-2010, 06:50 PM   #19
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by jphphotography View Post
YAY IT WORKED!!! I used notepad++ to make the .htaccess file just to be safe regarding the unix line termination issue.


Code:
AddType application/x-mobipocket-ebook .mobi



Thanks for the help everyone!!!!
Do you think it's possible to do something similar for epub ebooks?
Amalthia is offline   Reply With Quote
Old 09-23-2010, 06:52 PM   #20
jphphotography
Zealot
jphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud of
 
Posts: 107
Karma: 27246
Join Date: Sep 2010
Location: Saskatoon SK, Canada
Device: Kindle 3 6" 3G + wifi, Sony PRS-300, iTouch 4G, Galaxy S Vibrant
I didn't think the Kindle supported epub
jphphotography is offline   Reply With Quote
Advert
Old 09-23-2010, 07:03 PM   #21
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,371
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
IF the Kindle supported epub you could do the same thing with something like:

AddType application/epub+zip .epub

DiapDealer is offline   Reply With Quote
Old 09-23-2010, 07:27 PM   #22
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by jphphotography View Post
I didn't think the Kindle supported epub
I was thinking more along the lines of other devices that are coming out with wi-fi/3G that do support epub.
Amalthia is offline   Reply With Quote
Old 09-23-2010, 09:24 PM   #23
jphphotography
Zealot
jphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud of
 
Posts: 107
Karma: 27246
Join Date: Sep 2010
Location: Saskatoon SK, Canada
Device: Kindle 3 6" 3G + wifi, Sony PRS-300, iTouch 4G, Galaxy S Vibrant
FYI I just tried this with a pdf and it did not work, I got an error message on my kindle that says:

" Web Browswer cannot download this kind of file. Only files with the extension .azw, .prc, .mobi, or .txt can be downloaded to your Kindle."

@DiapDealer
If I wanted to make the .htaccess file cover all the bases would this work or should the application be different for the other formats (ie the x-mobipocket-ebook part)

Code:
AddType application/x-mobipocket-ebook .mobi
AddType application/x-mobipocket-ebook .azw
AddType application/x-mobipocket-ebook .prc
AddType application/x-mobipocket-ebook .txt
@Amalthia
I'm not sure if the type portion of the mimetype would be the same for another type of reader. Also since this thread is just for Kindle I'm not sure if this is the right place to pose your question I'd wait until a reader like the one you're talking about comes out and then determine how to get it to work, I think it would depend heavily on the device itself.

Last edited by jphphotography; 09-23-2010 at 09:25 PM. Reason: Typo, changed .pdf to .azw
jphphotography is offline   Reply With Quote
Old 09-23-2010, 09:52 PM   #24
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,371
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
If I wanted to make the .htaccess file cover all the bases would this work or should the application be different for the other formats (ie the x-mobipocket-ebook part)
Actually, you should combine them into one line:
Code:
AddType application/x-mobipocket-ebook .mobi .prc .azw
The txt format could be tricky. I won't swear that adding the .txt extension to the x-mobipocket-ebook mime type would make the browser automatically download it, but it certainly wouldn't hurt to try.

BTW, if you create a mobi book that contains the proper links to the books on your server, you can open that 'catalog' mobi on your Kindle... click the link and it will automatically download as well (just like Gutenberg's Magic Catalog). No need to open the browser and surf to your website.
DiapDealer is offline   Reply With Quote
Old 09-23-2010, 10:46 PM   #25
jphphotography
Zealot
jphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud of
 
Posts: 107
Karma: 27246
Join Date: Sep 2010
Location: Saskatoon SK, Canada
Device: Kindle 3 6" 3G + wifi, Sony PRS-300, iTouch 4G, Galaxy S Vibrant
Ok so I can confirm that this is working for .mobi .azw and .txt

I don't have any .prc books to try but since the others work I think it's fair to assume that .prc books should work as well.

Thanks for all the help DiapDealer!
jphphotography is offline   Reply With Quote
Old 09-23-2010, 11:07 PM   #26
MrPLD
Author's pet-geek
MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.MrPLD ought to be getting tired of karma fortunes by now.
 
MrPLD's Avatar
 
Posts: 933
Karma: 1040670
Join Date: Sep 2010
Location: North Queensland, Australia
Device: Kindle 3 Wifi, Onyx Boox M96
DiapDealer,

Perhaps for when handling the .txt situation, one could use a specific directory wherein the .txt files are explicitly for the reader, hence you can safely apply the MIME type directive using a .htaccess in that directory.

Paul.
MrPLD is offline   Reply With Quote
Old 09-23-2010, 11:36 PM   #27
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by jphphotography View Post

@Amalthia
I'm not sure if the type portion of the mimetype would be the same for another type of reader. Also since this thread is just for Kindle I'm not sure if this is the right place to pose your question I'd wait until a reader like the one you're talking about comes out and then determine how to get it to work, I think it would depend heavily on the device itself.
Yeah, sorry for posting in the Kindle forum. I didn't realize it was possible to download from the web to the Kindle and I figured if the Kindle can do it, so can other devices. Though you're right, they probably do use different methods.

But the main reason I'm reading the Kindle forums is because I host hundreds of mobipocket formatted fan fiction stories on the Ebook Library so for me I do have an interest in the mobipocket format and the Kindles because I don't have one so I have to rely on other users to learn what it can and cannot do. I'm also hosting epub files so I was hoping to offer the option to both sets of users at the archive.

This thread was interesting to me because if I can get it to work on the website then it may be possible for Kindle owners and other ebook device owners to browse and download the mobi formatted stories to their device.

I'm just not sure if the browser can go to the website...
Amalthia is offline   Reply With Quote
Old 09-23-2010, 11:41 PM   #28
diokdin
Groupie
diokdin began at the beginning.
 
diokdin's Avatar
 
Posts: 187
Karma: 46
Join Date: Nov 2009
Location: TN, US
Device: iPhone 4, Astak EZ Pocket Pro, Kindle 3 3G
Umm...is there a step by step way (with layman terms) of how to do this? So people who are not tech savvy like me knows how to do this thing? Screenshot would be nice too if it's not a bother. Thanks!

Last edited by diokdin; 09-23-2010 at 11:45 PM.
diokdin is offline   Reply With Quote
Old 09-24-2010, 01:45 AM   #29
jphphotography
Zealot
jphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud ofjphphotography has much to be proud of
 
Posts: 107
Karma: 27246
Join Date: Sep 2010
Location: Saskatoon SK, Canada
Device: Kindle 3 6" 3G + wifi, Sony PRS-300, iTouch 4G, Galaxy S Vibrant
@diokdin Look at post #18, let me know if that works for you and if not then specify which part(s) you need explained in simpler terms.

@Amalthia
No worries about the posting in the kindle section, I'm new here and just wasn't sure if they were sticklers or not I see where you're coming from, it's really too bad there isn't just one standardized format so that people don't have to host a million different versions.
jphphotography is offline   Reply With Quote
Old 09-24-2010, 02:10 AM   #30
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by jphphotography View Post

@Amalthia
No worries about the posting in the kindle section, I'm new here and just wasn't sure if they were sticklers or not I see where you're coming from, it's really too bad there isn't just one standardized format so that people don't have to host a million different versions.
I'm also not sure if there are sticklers...but yes it would be great if there was just one format. It would make archiving so much easier.
Amalthia is offline   Reply With Quote
Reply

Tags
kindle file hosting


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best download file format for Kindle?? OakIris Amazon Kindle 26 10-11-2010 06:46 PM
Direct download readers Kumabjorn Which one should I buy? 12 07-10-2010 10:16 AM
New Feature Suggestion: MEGAUPLOAD / RAPIDSHARE direct download zon9873 Calibre 2 03-18-2010 04:06 PM
Lots of Free ePUBs, download direct with ZuluReader. ondabeach Reading and Management 0 06-15-2009 10:54 PM
Free file hosting service offers 1GB of storage Brian Lounge 0 09-21-2005 09:47 PM


All times are GMT -4. The time now is 11:22 PM.


MobileRead.com is a privately owned, operated and funded community.