Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 38

Module 06

Designing for
Discoverability
Module Overview
- Lesson 1: Overview of Search Engine Optimization
- Lesson 2: Creating Discoverability Files
- Lesson 3: Using ASP.NET Routing
Lesson 1: Search Engine Optimization
- Overview of Search Engine Optimization
- Components of the IIS SEO Toolkit
- Demonstration: Analyzing a Website by Using the IIS SEO
Toolkit
Overview of Search Engine Optimization
- SEO Strategies
HTML
URLs
Anti-patterns
- Improve the volume and quality of traffic to your website
from search engines
- Control how search engines access and display web
content
- Inform search engines about locations that are available
for indexing
Components of the IIS SEO Toolkit
- Site Analysis
Optimizes content, structure, and URLs for search engine
crawlers
Discovers problems that impact the user experience of website
- #4-4t Exclusi4n
Manage all robots.txt files from within IIS Manager
Modify robots.txt files from a GUI interface
- Sitemap and Site Index
Manage all sitemap files from within IIS Manager
Modify sitemap.xml files from a GUI interface
Demonstration: Analyzing a Website by Using the
IIS SEO Toolkit
pen the IIS SE T44lkit pen the IIS SE T44lkit
Create a new analysis Create a new analysis
#eview site analysis
rep4rt
#eview site analysis
rep4rt
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Lesson 2: Discoverability Files
- What is a Robots File?
- Demonstration: Creating a Robots File
- What is the Sitemap File?
- Demonstration: Creating a Sitemap File
What are Robots Files?
Robots files are used to prevent cooperating web spiders or
crawlers from accessing all or part of a website.
- Disadvantages
Purely advisory
Assumes web spiders will adhere to request
If incorrect, could keep web spiders from indexing important
content
Demonstration:
Creating a Robots File
pen IIS Manager pen IIS Manager
pen Search Engine
ptimizati4n feature
pen Search Engine
ptimizati4n feature
Add sitemap file Add sitemap file
pen r4-4ts.txt file pen r4-4ts.txt file
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
What is the Sitemap File?
- Informs web spiders about URLS on a website
- Provides additional information about content
Description
Relationship to other URLs
Last modified date
- Not compatible with all Web 2.0 Frameworks
Silverlight

Adobe Flash
- If inaccurate, could degrade page rank
Demonstration: Creating a Sitemap File
pen IIS Manager pen IIS Manager
pen Search Engine
ptimizati4n feature
pen Search Engine
ptimizati4n feature
Create new sitemap
file
Create new sitemap
file
Lesson 3: Using ASP.NET Routing
- How Does ASP.NET Routing Work?
- Demonstration: Using ASP.NET Routing with Web Forms
Pages
- Using ASP.NET Routing with MVC Pages
- Creating Route Constraints
- Demonstration: Creating Route Constraints
- Creating Custom Routes
- Demonstration: Creating Custom Routes
How ASP.NET Routing Works
- Routing built in to ASP.NET 4.0
- Maps physical files to logical URLs
- Provides meaning to URLs
Eliminate query parameters
- More readable
Search Engines
End Users
Demonstration: Using ASP.NET Routing with Web
Forms Pages
pen the s4luti4n pen the s4luti4n
Add reference t4
System.We-.#4uting
Add reference t4
System.We-.#4uting
Add #egister#4utes
meth4d t4 Gl4-al class
Add #egister#4utes
meth4d t4 Gl4-al class
M4dify
Applicati4n_Start
M4dify
Applicati4n_Start
M4dify Page_L4ad in
Search class
M4dify Page_L4ad in
Search class
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Using ASP.NET Routing with MVC Pages
irst
request
irst
request
Applicati4n_Start meth4d Applicati4n_Start meth4d
#egister#4utes Meth4d #egister#4utes Meth4d
#4ute Ta-le is
created
#4ute Ta-le is
created
Su-sequent
requests
Su-sequent
requests
Creating Route Constraints
- Route Constraints restrict the browser requests that match
a particular route
- Uses Regular Expressions
routes.MapRoute( "Product",
"Product/,productId,",
new ,controller="Product", action="Details",,
new ,productId = @"\d+" , );
#estricts pr4duct
ID t4 an integer
#estricts pr4duct
ID t4 an integer
Demonstration: Creating Route Constraints
pen the s4luti4n pen the s4luti4n
Add r4ute t4
#egister#4utes
Add r4ute t4
#egister#4utes
Add #egister#4utes
meth4d t4 Gl4-al class
Add #egister#4utes
meth4d t4 Gl4-al class
Add Details acti4n t4
Pr4ductC4ntr4ller
Add Details acti4n t4
Pr4ductC4ntr4ller
M4dify Pr4duct r4ute M4dify Pr4duct r4ute
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Creating Custom Routes
- Custom routes allow for specialized routing needs; for
example:
&#Ls
/Archive/12-25-2010
/Archive/10-6-2004
/Archive/Apple
#4ute
routes.MapRoute("Blog", "Archive/,entryDate,",
new , controller = "Archive", action = "Entry" ,
);
Acti4n meth4d
public string Entry(DateTime entryDate)
,
return "You requested the entry from " +
entryDate.ToString();
,
Demonstration: Creating Custom Routes
pen the s4luti4n pen the s4luti4n
Add r4ute t4
#egister#4utes
Add r4ute t4
#egister#4utes
#un applicati4n #un applicati4n
Navigate directly t4
Bl4g/Archive view
Navigate directly t4
Bl4g/Archive view
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.
Lab: Designing for Discoverability
- Exercise 1: Mapping URLs of Web Forms Pages
- Exercise 2: Creating a Sitemap File
- Exercise 3: Building the Application Infrastructure
Logon information
Virtual machine 10264A-GEN-DEV
User name Student
Password
Pa$$w0rd
Estimated time: 60 minutes
Lab Scenario
Lab Review
- In which file are the routes registered?
- Why are the routes registered in this file?
Module Review and Takeaways
- Module Review
- Common Issues
- Real-world Issues and Scenarios
- Best Practices
Notes Page Over-flow Slide. Do Not Print Slide.
See Notes pane.

You might also like