HI mọi người, mình đang muốn: Redirect 301 from one website to another using web.config asp.net nghĩa là mình muốn redirect 301 trong hosting vps máy chủ trong file web.config aps.net mvc redirect 301 chuyển hướng url cũ sang url mới thì làm như thế nào? VD: web của mình là google.com có url cũ (url old) là: https://google.com/abc-301-alll.html muốn redirect sang 1 website url mới (url new) là https://itseovn.com thì làm như thế nào?
Bạn xem bài sau hoặc làm theo ví dụ dưới: https://itseovn.com/threads/redirect-default-aspx-to-root-home-301-in-web-config-asp-net-c.280266/ Mã: <system.webServer> <rewrite> <rules> <rule name="301 url-1" stopProcessing="true"> <match url="^abc-301-alll.html" /> <action type="Redirect" url="https://itseovn.com" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer> Url old: abc-301-alll.html Url new: https://itseovn.com