Skip to content

htaccess

Bryce edited this page Mar 26, 2014 · 10 revisions

Generally speaking Adobe Flash Player doesn't allow the Range header. The workaround is to use a custom query for every GET request, e.g. ?range=0-499.

Add this example into the .htaccess in the root of your hosting folder to support range queries:

<IfModule headers_module>
<IfModule rewrite_module>

	# ^(.*) if .htaccess in a root; ^/(.*) otherwise
	RewriteEngine On
	RewriteCond %{QUERY_STRING} ^(.*)bytes=(.*)$
	RewriteRule ^(.*) - [L,E=range:%2]

	RequestHeader set Range "bytes=%{range}e" env=range
</IfModule>
</IfModule>
Clone this wiki locally