TUT INDEX SOCIAL CHO NGƯỜI CHƯA BIẾT

Nhân dịp GSC mở lại index cho anh em thì hôm nay e sẽ chia sẻ tut index cho mọi người.

Điều kiện: social đó không có thẻ noindex nhé
Bước 1: Có 1 con domain (tốt nhất là domain để test). VD: nghienseo.com
Bước 2: Add con domain đó vào Google Search Console
Bước 3: Tạo file redirect.php ở thư mục gốc domain (httpdocs hoặc www) với nội dung như sau:
<?php
$url = $_GET['url'];
if ($url){
header("HTTP/1.1 301 Moved Permanently");
header("Location: $url");
exit();
}
?>
Bước 4: Vào google Search Console và dán link dạng này vào
https://domaincuaban.com/redirect.php?url={url cần submit}
VD: Domain của mình là thucnguyen.com và social cần index là https://soundcloud.com/nghienseo thì dán vào GSC dạng https://nghienseo.com/redirect.php?url=https://soundcloud.com/nghienseo
Bước 5: Đợi Google Index
Nguồn: https://www.facebook.com/groups/nghienseo/permalink/677534592916547/

Nhận xét

Bài đăng phổ biến từ blog này

Spin Content