我知道Stackoverflow上有很多例子,但我仍然想念一些东西.
我正在尝试使用以下规则将http://old.domain.com/fr/重定向到http://brand.new-domain.com/fr/,但这不起作用:
# Enable Rewrite Engine
RewriteEngine On
RewriteBase /
# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]
# Redirect domain
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^old.domain.com [OR]
RewriteCond %{HTTP_HOST} ^other-old.domain.com [NC]
RewriteRule ^(.*)$ http://brand.new-domain.com/$1 [r=301,L]
# Remove index.php
# Uses the "exclude method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Exclude_List_Method
# This method seems to work best for us, you might also use the include method. …Run Code Online (Sandbox Code Playgroud) 在<video>标签中,如果有很多来源(不同的编解码器),如何知道当前使用JQuery播放的源URL?
我尝试使用src属性,但它是空的.
谢谢!
光伏
.htaccess ×1
apache ×1
html5 ×1
html5-video ×1
jquery ×1
mediaelement ×1
mod-rewrite ×1
regex ×1
video ×1