|
|

楼主 |
发表于 2018-2-3 13:19:55
|
显示全部楼层
感谢 成功了
就是隐藏index.php的规则要添加一条例外
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^alltube\.herokuapp\.com$ [NC]
- RewriteRule ^(.*)$ https://www.alltubedownload.net/$1 [R=301,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_URI} !^/watch(.*)$
- RewriteRule ^ index.php [QSA,L]
- RewriteCond %{SERVER_PORT} !^443$
- RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
- RewriteCond %{QUERY_STRING} ^v=(.*)$
- RewriteRule ^watch(.*)$ https://%{SERVER_NAME}/video?url=https://youtu.be/%1 [R=301,L]
复制代码 |
|