我正在使用 cpanel API 从一个域重定向到另一个域,facebook 帖子显示目标页面(重定向的页面)的预览和 url,我想从 facebook 帖子中隐藏重定向网站的 url,但我不能'找不到这样做的方法。
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^qwe$ "https\:\/\/www\.gangslangs\.com\/awkward\-moments\-which\-can\-make\-anyone\-feel\-the\-cringe\/\?utm_unique\=SY1X2g" [R=302,L]
/////API CALL
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth($root, $root_pass);
$xmlapi->set_port(2083);
$xmlapi->set_debug(1);
$xmlapi->set_output('json');
$xmlapi->api2_query($account, "Email", "listpopswithdisk" );
$domain = "subdomain2";
$root=$_POST['url'];
$dis="1";
$random = randomString(6);
$xmlapi->api1_query($account,'Mime', 'add_redirect', array($random,'permanent',$destination.'?utm_unique='.$random,'domain.in','0','0') );
重定向规则在 htaccess 文件中正确编写,但我想在 facebook 帖子中隐藏目标 url。