Chapter 6. Routing Magic

In this chapter, we will cover:

  • Using named and GET parameters
  • Using routes with prefixes
  • Working with route elements
  • Adding catch-all routes for profile pages
  • Adding validation for catch-all routes
  • Creating custom Route classes

Introduction

Almost every web-based application will eventually have to develop a successful strategy to obtain better search engine position through a technique known as search engine optimization.

This chapter starts by introducing some basic concepts of routing through the use of route parameters, and continues to build optimized routes to leverage our search engine placement.

The final section in this chapter shows us how to create highly optimized URLs for our user profiles, and how to build custom Route classes to obtain even more flexibility.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.20.156