重写url(download.php/video.mp4 to download.php)
如何重写URL,以便当我的JW播放器通过链接(/video.mp4)访问文件时,它实际访问?这是您需要在Web服务器级别上配置的内容 如果您在Apache Web服务器上,请查看mod_rewrite重写url(download.php/video.mp4 to download.php),php,url-rewriting,Php,Url Rewriting,如何重写URL,以便当我的JW播放器通过链接(/video.mp4)访问文件时,它实际访问?这是您需要在Web服务器级别上配置的内容 如果您在Apache Web服务器上,请查看mod_rewrite RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule download\.php/(.*) /download.php?file=$1 [L,QSA]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule download\.php/(.*) /download.php?file=$1 [L,QSA]