Reply
creating .htaccess file for linux web hosting
Old 08-19-2009, 06:58 PM creating .htaccess file for linux web hosting
Junior Talker

Posts: 4
Trades: 0
My client has a linux hosting account via godaddy. I've created a page and could not figure out why a simple link to open a word .doc would result in a page not found.

GoDaddy has advised that linux does not recognize .doc and I have to add a .htaccess file to the root folder to make this link work but I'm no coder.

They gave a bit of info so I'm asking for help - what is wrong with the following "code" to be saved as .htaccess

AddType application/word doc

thanks much for your assistance.

Peggy
ovapeg is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-19-2009, 07:20 PM Re: creating .htaccess file for linux web hosting
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
I'd be more inclined to look at the spelling and case of the file name bfore looking at MIME types. Linux servers are case sensitive so Word.doc is NOT the same as word.doc
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-19-2009, 07:47 PM Re: creating .htaccess file for linux web hosting
Junior Talker

Posts: 4
Trades: 0
capitalization was the first thing I checked.

for the file the following is not working - any idea what's wrong?

AddType application/x-microsoft-word doc
ovapeg is offline
Reply With Quote
View Public Profile
 
Old 08-19-2009, 08:00 PM Re: creating .htaccess file for linux web hosting
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
Code:
application/msword
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-19-2009, 08:06 PM Re: creating .htaccess file for linux web hosting
Junior Talker

Posts: 4
Trades: 0
AddType application/x-word doc doesn't work - do I need to make a reference in the actual html file to this .htaccess?
ovapeg is offline
Reply With Quote
View Public Profile
 
Old 08-20-2009, 01:10 PM Re: creating .htaccess file for linux web hosting
Junior Talker

Posts: 4
Trades: 0
SUCCESS!!!!! AddType application/msword doc IS the correct code in .htaccess file to have a linux hosted website open .doc word documents!

I had read on one site to use notepad only and then another that said only wordpad would work. Wordpad is the winner!

This is a big deal for someone who is not a geek to accomplish! Thanks for your help chrishirst
ovapeg is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to creating .htaccess file for linux web hosting
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12477 seconds with 13 queries