kentico cms - url rewriting and output filters

16
URL Rewriting and Output Filters Thomas Robbins [email protected] http://devnet.kentico.com/Blogs/Thomas-R obbins.aspx Kentico_CMS trobbins

Upload: thomas-robbins

Post on 26-Jan-2015

115 views

Category:

Technology


3 download

DESCRIPTION

Kentico CMS provides exposes a friendly URL addresses that provides web sites with better SEO visibility and full control of their exposed URL’s. This process is based on a URL rewriting engine that displays the correct page based on a specified friendly or smart URL. Once the page is processed by the URL rewriting engine, the rendered HTML is sent to a set of output filters. These filters applied allow developers to make changes to the HTML before it is sent to the browser. In this webinar we will examine this process and the ways that it can be used to build your site.

TRANSCRIPT

Page 1: Kentico CMS - URL Rewriting and Output Filters

URL Rewriting and Output Filters

Thomas [email protected]://devnet.kentico.com/Blogs/Thomas-Robbins.aspx

Kentico_CMStrobbins

Page 2: Kentico CMS - URL Rewriting and Output Filters

SESSION AGENDA

• The Power of Friendly URL’s

• URL Rewriting Engine

• Output Filters

Page 3: Kentico CMS - URL Rewriting and Output Filters

THE POWER OF FRIENDLY URL’S

Page 4: Kentico CMS - URL Rewriting and Output Filters

WELCOME TO KENTICO CMS 5.0∙ On-line forms (BizForms)∙ On-line users∙ PayPal support∙ Personalized content∙ Personalized editor∙ Polls∙ Portal engine∙ Preview before publish∙ Recycle Bin∙ Report Abuse∙ Reporting∙ Re-use content on several pages∙ Roles and Users∙ RSS feeds∙ SEO∙ Scheduled Tasks∙ Spell-checker∙ Starter Sites∙ Taxonomy - Categories, Tagging∙ Time-zones support∙ UI Personalization∙ URL aliases∙ User contributions∙ User management∙ User registration and secured pages∙ Web analytics∙ Web farm support∙ Widgets∙ Windows authentication∙ Windows Live ID authentication∙ Workflow∙ WYSIWYG, browser-based editing∙ XHTML, CSS layouts, W3C WAI∙ Youtube integration

∙ 200 built-in web parts∙ Active Directory integration∙ AJAX support∙ Approving documents∙ Authorize.NET∙ Avatars∙ Bad words∙ Badges∙ Banned IP addresses∙ Blogs∙ Booking System∙ Branding∙ Complete documentation of the CMS∙ Content and object staging∙ Content locking (check-in/check-out)∙ Content Rating∙ Content/design separation∙ Controls caching∙ Custom document types∙ Custom document types with∙ Custom event handlers∙ Custom fields∙ Custom tables∙ Custom web parts in C# and VB.NET∙ Customizable Menu∙ Customizable page templates∙ Customizable permissions∙ Customizable settings∙ Deployment on shared hosting∙ Document-level permissions∙ Drag-drop development∙ Dynamic site map∙ Easy deployment

∙ E-commerce (on-line store)∙ E-mail queue∙ Event Calendar∙ Event Log∙ Export/import web sites or selected∙ Flexible content hierarchy∙ Flexible navigation∙ Forms authentication∙ Forums∙ Friendly (smart) URLs∙ Friends∙ Full source code∙ Full-text search∙ Fully customizable∙ Geo mapping (Google Maps)∙ Google sitemap∙ Groups∙ IE 6.0, IE 7.0 FireFox 1.0.5+, Mozilla

7.1+, Netscape 7.1+, Opera 7.52+ support

∙ Image gallery∙ Incremental deployment of site changes∙ installation and database∙ Integration with custom user and role

database, external authentication∙ Linked documents∙ Management and publishing of∙ Media library∙ Memory management∙ Message boards∙ Messaging∙ Multiple languages∙ Multiple sites using single code∙ Newsletters∙ Notifications

Page 5: Kentico CMS - URL Rewriting and Output Filters

UNFRIENDLY URL’S

• Complex to read• Contain punctuation and identifiers• Why you should be concerned• Difficult to type – typos are common• Don’t promote usability – Difficult to remember and provide no clue to a

user as to what the resource is• Security risk – Classic front door attack on modifying the URLS’s• Impede abstraction and maintainability – Expose wiring of the site and

make changing technology difficult

Page 6: Kentico CMS - URL Rewriting and Output Filters

FRIENDLY URL’S

• Easy to remember, write and share•SEO Friendly•Shows users where they are located on the site

Page 7: Kentico CMS - URL Rewriting and Output Filters

DEMO

Page Tips and Tricks

Demo available here

Page 8: Kentico CMS - URL Rewriting and Output Filters

URL REWRITING ENGINE

Page 9: Kentico CMS - URL Rewriting and Output Filters

ASSEMBLING THE PAGE

Page is requested• IIS Request

Is page excluded• Site Manager –

Settings – URL s and SEO

Assemble page• Inherit settings• Get page settings

Apply output filters• Fix form elements• Fix HTML

incompatibilities• Resolve relative URLs

Display Page

Page 10: Kentico CMS - URL Rewriting and Output Filters

THE PAGE CALL STACK

Application_AuthorizeRequest: Fired when the security module has verified that a user can access resources

Page 11: Kentico CMS - URL Rewriting and Output Filters

SYSTEM WIDE SETTINGS

Page 12: Kentico CMS - URL Rewriting and Output Filters

OUTPUT FILTERS

Page 13: Kentico CMS - URL Rewriting and Output Filters

SETTING OUTPUT FILTERS• Fixes issues with non working post backs on pages using

URL rewriting• Ensures forms, dialogs, and buttons will work correctly

on CMS managed pagesForm Filter

• Fixes some XHTML incompatibilities• Closes unclosed tags, and invalid script tags• XHTML may also be fixed by WYSIWYG editorXHTML

Filter• Changes relative URL ~mypage1/mypage2.aspx to

/mypage1/mypage2• It changes only URLs inside src and href attributesResolve

Filter

Page 14: Kentico CMS - URL Rewriting and Output Filters

OUTPUT FILTERS

• Helps with user input errors• Applied to rendered HTML code • Pages can be excluded in Site Manager ->

Settings -> Output Filter

Page 16: Kentico CMS - URL Rewriting and Output Filters

QUESTIONS

Thomas [email protected]

http://devnet.kentico.com/Blogs/Thomas-Robbins.aspx

Kentico_CMStrobbins