小编pvl*_*oux的帖子

htaccess:将旧域和所有页面重定向到新域

我知道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)

regex apache .htaccess mod-rewrite expressionengine

8
推荐指数
1
解决办法
9656
查看次数

视频html5:如何获取当前播放的来源

<video>标签中,如果有很多来源(不同的编解码器),如何知道当前使用JQuery播放的源URL?

我尝试使用src属性,但它是空的.

谢谢!

光伏

video jquery html5 mediaelement html5-video

7
推荐指数
1
解决办法
4709
查看次数