Htaccess

From Leo's Notes
Revision as of 20:10, 2 June 2013 by Leo (talk | contribs) (Created page with " == Forcing .sh, .c, .cpp as Text Files == If you are presented with a download window when you click on a <code>.sh</code> or <code>.c</code> file, you may force the content...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 2 June 2013, at 20:10.

Forcing .sh, .c, .cpp as Text Files

If you are presented with a download window when you click on a .sh or .c file, you may force the content to be a text file on apache by putting the following lines in your .htaccess file:

AddType text/plain .sh
AddType text/plain .c
AddType text/plain .cpp