TAILIEUCHUNG - Pro ASP.NET MVC Framework phần 6

MVC Framework là một Model-View-Controller framework được Microsoft thêm vào bộ . Nó cho phép người làm phần mềm xây dựng những Web application theo ý tưởng của MVC, gồm 3 thành phấn Model, View và Controller. Một Model tượng trưng cho một trạng thái của ứng dụng. Thông thường, một model sẽ maps với một table trong cơ sở dữ liệu, những record trong table đó sẽ tượng trưng cho trạng thái của table đó. Còn một Controller sẽ handle những tương tác của người dùng với ứng dụng và cập nhật giá trị cho Model. | CHAPTER 8 URLS AND ROUTING 257 public class PermanentRedirectToRouteResult ActionResult public RedirectToRouteResult Redirection get private set public PermanentRedirectToRouteResult RedirectToRouteResult redirection redirection public override void ExecuteResult ControllerContext context After setting up a normal redirection switch it to a 301 context 301 Whenever you ve imported this class s namespace you can simply add .AsMovedPermanently to the end of any redirection public ActionResult MyActionMethod return RedirectToAction AnotherAction .AsMovedPermanently Search Engine Optimization You ve just considered URL design in terms of maximizing usability and compliance with HTTP conventions. Let s now consider specifically how URL design is likely to affect search engine rankings. Here are some techniques that can improve your chances of being ranked highly Use relevant keywords in your URLs products dvd simpsons will score more points than products 293484. As discussed minimize your use of query string parameters and don t use underscores as word separators. Both can have adverse effects on search engine placement. Give each piece of content one single URL its canonical URL. Google rankings are largely determined by the number of inbound links reaching a single index entry so if you allow the same content to be indexed under multiple URLs you risk spreading out the weight of incoming links between them. It s far better to have a single high-ranking index entry than several low-ranking ones. If you need to display the same content on multiple URLs . to avoid breaking old links then redirect visitors from the old URLs to the current canonical URL via an HTTP 301 moved permanently redirect. Obviously your content has to be addressable otherwise it can t be indexed at all. That means it must be reachable via a GET request not depending on a POST request or any sort of JavaScript- .

TÀI LIỆU MỚI ĐĂNG
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.