Merhabalar, bu konuda yardım lazım. Herşey hazır bu kısımı yapamadım
<link rel="amphtml" href="<?php echo str_replace('https://www','https://' . $yedimseni , $canonical ); ?>" />Diğer kodumuz ise böyle biz bunu editleyip böyle yaptık ki (link yapısı değişsin ama bu toplu değiştirdi), link yapımız böyle çıkıyor link yapısının böyle olmasını istiyoruz ama bunu yapınca bizim
AMP HTML tagımızddada link böyle çıkıyor.
amp html tağında ise linkin böyle çıkmasını istiyoruz : https://'.$yedimseni.'.deneme.tk https://'.$yedimseni.'-deneme-tk.cdn.ampproject.org/c/'.$yedimseni.'.deneme.tk/
function better_amp_site_url( $path = '', $before_sp = '' ) {
include("wp-content/plugins/better-amp/includes/functions/deneme.php");
$url = ( 'https://'.$yedimseni.'-deneme-tk.cdn.ampproject.org/c/'.$yedimseni.'.deneme.tk/' );
//
$url .= $before_sp ? trailingslashit( $before_sp ) : '';
$url .= Better_AMP::STARTPOINT;
if ( $path ) {
$path = ltrim( $path, '/' );
$url .= "/$path";
}
return $url;
}