Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm not sure if this is the right place for this kind of question so sorry in advance.

I am creating an offline web app for the iPhone, and right now I am renting servers (well, on a free package) for my personal website, so this is where I'm going to store the offline web app.

Anyway, how do I change the .htaccess file in the file manager so that I can add the line 'AddType text/cache-manifest .manifest', I can see the file using the GUI for the file manager but when I try to edit it or change permissions to edit nothing happens - so I guess they've blocked my access to it. What's more is the fact that the file has a size of '0 bytes' and when i try to open it, it is, low and behold 'empty'.

So how do I add this line to the .htaccess so I can finally create this offline web app?

Thanks, Adam.

share|improve this question

migrated from stackoverflow.com Aug 8 '11 at 20:01

This question came from our site for professional and enthusiast programmers.

You might not be just missing the content type. Most servers are configured to disallow access to anything whose name begins with a .. –  Brad Aug 8 '11 at 16:29
I think that only the administrator of that server can give you the proper rights over that particular file, but as a suggestion, you can try to place your web app inside a sub-folder and place there an ".htaccess" file with the commands you want... if the system is prepared for it, all inside that sub-folder will respect does commands! –  Zuul Aug 8 '11 at 16:39
nice idea Zuul :) but what should exactly be in the .htaccess file by default anyway? I'm new to the server side part of the web - as appose to the programming side –  Adam Carter Aug 8 '11 at 16:43
By default it can be empty or not exist at all. In such case global Apache setting (as set in httpd.conf file) take effect. –  Mchl Aug 8 '11 at 17:01
I have created a .htaccess file with only the text 'AddType text/cache-manifest .manifest', it is in the same place as the manifest and the index.php file and the manifest is linked to in the html tag. However, once installed as an offline app, it still says it needs the internet to connect –  Adam Carter Aug 8 '11 at 17:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.