最差冠军的奖品归我所有:)
您好,
当我需要网址时,我有一个特殊的情况:
sample.mp4
在内部重写为:
sample.mp4?start=400&end=500
因此,对该文件的每个请求都只会让我预览视频。
这是否适用于apache RewriteEngine?
答案 0 :(得分:0)
试试这段代码,这适用于sample.mp4?start = 400& end = 500以及start和end的任何通用值
RewriteCond %{REQUEST_URI} ^/sample\.mp4$
RewriteCond %{QUERY_STRING} ^start=(.*)&end=(.*)$
RewriteRule ^(.*)$ http://example.com/sample.mp4? [R=301,L]