|
500金钱
本帖最后由 lanleoean 于 2018-2-3 13:20 编辑
aaa.com/watch?v=abc
跳转到
aaa.com/video?url=https://youtu.be/abc
目前的rewrite规则
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^alltube\.herokuapp\.com$ [NC]
- RewriteRule ^(.*)$ https://www.alltubedownload.net/$1 [R=301,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ index.php [QSA,L]
- RewriteCond %{SERVER_PORT} !^443$
- RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
复制代码
搭建了个alltube,想方便点下ytb
apache的,谢大佬
事后再补500金
成功了,规则如下:
- 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]
复制代码 |
|