Tạo redirect website sang 1 đường dẫn khác hoặc domain khác trên code web

Tạo redirect website sang 1 đường dẫn khác hoặc domain khác.

Mục đích: Tạo redirect website sang 1 đường dẫn khác hoặc domain khác, rất tiện nếu bị tấn công, thông báo bảo trì web lỗi…

Mặc định thông tin web sẽ lưu trữ trong file index.html hoặc index.php. Bạn chỉ cần tìm file trên và add thêm dòng bôi đỏ

 

<!DOCTYPE html>

<html>

<head>

 ​​ ​​​​ <!-- HTML meta refresh URL redirection -->

 ​​ ​​​​ <meta http-equiv="refresh"

 ​​ ​​​​ content="0; url=http://​​ trafficidc2.fptdata.com/cacti">

</head>

<body>

 ​​ ​​​​ <p>You will be redirect to:  ​​​​ <a href="http://ridirect.com/chuyen-huong">http://​​ http://ridirect.com/chuyen-huong​​ </a></p>

</body>

</html>

BÀI VIẾT CÙNG CHUYÊN MỤC

Không copy được giữa máy Windows và máy ảo qua mRemoteNG/RDP: Nguyên nhân và cách sửa
Không copy được giữa máy Windows và máy ảo qua ...

mRemoteNG Remote Desktop RDP Clipboard Redirection rdpclip.exe VPS Windows ...

Hướng dẫn bật Nested Virtualization trên ESXi để chạy Android Studio Emulator trong máy ảo Windows
Hướng dẫn bật Nested Virtualization trên ESXi để chạy ...

Nested Virtualization ESXi VMware Android Studio Android Emulator WHPX Hyper-V ...

PITR (Point In Time Recovery) là gì? Khôi phục Database về đúng thời điểm cần thiết
PITR (Point In Time Recovery) là gì? Khôi phục ...

PITR, Point In Time Recovery, PITR là gì, Database Recovery, PostgreSQL PITR, ...

Backup Database Full, Incremental, Differential khác nhau thế nào?
Backup Database Full, Incremental, Differential khác ...

Backup Database, Full Backup, Incremental Backup, Differential Backup, Backup ...

Database Cluster là gì? High Availability, Failover và Cluster Database hoạt động như thế nào?
Database Cluster là gì? High Availability, Failover và ...

Database Cluster, Database Cluster là gì, High Availability Database, Database ...