开发者

.htaccess AddType plain/text

I have a page that I dynamically show my Unix scripts in another folder. I added:

AddType text/plain .sh <-- this is the only thing in .htaccess in the "unix" directory

So I could see the codes, but SOME files are still offered as a download while others go to the correct plain text display.

Here's the site live:

http://snyfarvu.farmingdale.edu/~gerbss/

Unix scripts: g开发者_Go百科uess.sh, add.sh, lock.sh are the ones that are acting up

Thanks for your suggestions


It's working for me in Chrome, Firefox and Safari on Mac OS X. Did you click those links before adding the .htaccess? If so, your browser may be using the cached response which would be missing the content type header.

Try clearing your browser cache and trying again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜