<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Threads &#187; apache</title>
	<atom:link href="http://www.web-threads.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-threads.com</link>
	<description>Websites for Business and Online Communities</description>
	<lastBuildDate>Tue, 10 Aug 2010 21:48:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Drupal: mq4 File Attachments Open As Plain Text</title>
		<link>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/</link>
		<comments>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 19:43:43 +0000</pubDate>
		<dc:creator>Web Threads</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.web-threads.com/?p=270</guid>
		<description><![CDATA[A quick fix this morning for a client with a Drupal issue, links to mq4 files were opening as plain text in the browser window instead of presenting a download file prompt.
This is due to the server configuration, apache mime-types. It is usually easily fixed in an .htaccess file.


AddType application/octet-stream mq4

If that doesn&#8217;t sort the issue after clearing the browser cache, you can also try adding:

&#60;Files *.mq4&#62;
ForceType application/octet-stream
Header set Content-Disposition attachment
&#60;/Files&#62;

See also:
Drupal Mime-Types
Apache mod_mime
Apache htaccess directives

Like
Unlike

]]></description>
			<content:encoded><![CDATA[<p>A quick fix this morning for a client with a Drupal issue, links to mq4 files were opening as plain text in the browser window instead of presenting a download file prompt.</p>
<p>This is due to the server configuration, apache mime-types. It is usually easily fixed in an .htaccess file.<br />
<span id="more-270"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">AddType application<span style="color: #000000; font-weight: bold;">/</span>octet-stream mq4</pre></div></div>

<p>If that doesn&#8217;t sort the issue after clearing the browser cache, you can also try adding:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>Files <span style="color: #000000; font-weight: bold;">*</span>.mq4<span style="color: #000000; font-weight: bold;">&gt;</span>
ForceType application<span style="color: #000000; font-weight: bold;">/</span>octet-stream
Header <span style="color: #000000; font-weight: bold;">set</span> Content-Disposition attachment
<span style="color: #000000; font-weight: bold;">&lt;/</span>Files<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>See also:<br />
<a href="http://obor.us/node/2027" rel="nofollow">Drupal Mime-Types</a><br />
<a href="http://httpd.apache.org/docs/1.3/mod/mod_mime.html" rel="nofollow">Apache mod_mime</a><br />
<a href="http://httpd.apache.org/docs/1.3/howto/htaccess.html" rel="nofollow">Apache htaccess directives</a>
</p>
<div class='wp_likes' id='wp_likes_post-270'><a class='like' href="javascript:wp_likes.like(270);" title='' ><img src="http://www.web-threads.com/press/wp-content/plugins/wp-likes/images/like.png" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(270);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.web-threads.com/2009/08/drupal-mq4-file-attachments-open-as-plain-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

