lanleoean 发表于 2018-2-3 13:19:55

今晚我是你的 发表于 2018-2-3 12:34
一个问号那就好搞了

感谢 成功了
就是隐藏index.php的规则要添加一条例外

RewriteEngine On

    RewriteCond %{HTTP_HOST} ^alltube\.herokuapp\.com$
    RewriteRule ^(.*)$ https://www.alltubedownload.net/$1

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !^/watch(.*)$
    RewriteRule ^ index.php

    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{SERVER_NAME}/$1

    RewriteCond %{QUERY_STRING} ^v=(.*)$
    RewriteRule ^watch(.*)$ https://%{SERVER_NAME}/video?url=https://youtu.be/%1
页: 1 [2]
查看完整版本: 求大佬写条apache rewrite规则