我正在尝试创建一个友好的URL,RewriteRule但它一直忽略#作为变量值的一部分.
.htaccess上的这一行很简单
RewriteRule ^key/(.+)/$ index.php?key=$1
Run Code Online (Sandbox Code Playgroud)
并且请求的URL是
http://www.example.com/key/c%23/
Run Code Online (Sandbox Code Playgroud)
但我只是c得到变量而不是c%23.
我究竟做错了什么?
在运行命令时:
curl --head http://www.yourdomain.com/
在我的本地机器上,我得到这个输出:
HTTP/1.1 200 OK
Date: Sat, 31 Mar 2012 09:45:16 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: ASP.NET_SessionId=p2mt4l553bti4x55geyiwiil; path=/; HttpOnly
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 14663
但在我的实时服务器上,我得到:
curl: (56) Recv failure: Connection reset by peer
他们都使用相同的卷曲版本(7.21.0),目前,我只收到一个特定网址的错误.
我该怎么解决这个问题?
我正在使用ffmpeg将视频转换为mp4格式.一切正常,除了MOV格式.
我用于一切的命令是:
ffmpeg -i input.mov -strict experimental -sameq -s vga -aspect 1.7777 -vcodec libx264 -preset fast -crf 22 -y output.mp4
但我一直得到的输出是:
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Mar 12 2012 11:01:05 with gcc 4.4.5
configuration: --enable-libx264 --enable-gpl --disable-yasm
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / …Run Code Online (Sandbox Code Playgroud)