- you’ve been HAACKED – ASP.NET MVC on IIS 6 Walkthrough
- Steve Sanderson’s blog – Deploying ASP.NET MVC to IIS 6
- Bia Securities – How to enable pretty urls with Asp.Net MVC and IIS6
- Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5 – Deploy ASP.NET MVC on IIS 6, solve 404, compression and performance problems
- DDIT’s Blog – ASP.NET MVC op IIS 6
Categorie: SEO
URL Rewrite Module
Today IIS team has made the Go Live release of URL Rewrite Module for IIS 7.0 available for download. This release contains significant functionality and performance improvements and it is believed to have a quality level suitable for production deployments.
URL Rewriting in IIS 7
I started to use URL Rewriting on a Windows 2008 Server running Internet Information Server 7. At the time of writing, a technical preview of the module is available here: Using URL Rewrite Module.
After installing the module, I was able to configure a first rule that rewrote an incoming URL in the form of http://server/en/catalogue/123/abc123 to http://server/Catalogue.aspx?l=en&cat=123&sub=abc123, exactly the way I wanted it.
But when opening the page, I saw my layout and styles were gone. Not difficult to know where the problem is, because stylesheets and images are loaded from the client with their path relative to the requested page. In this case a reference to "style.css" will be loaded from http://server/en/catalogue/123/style.css instead of http://server/style.css, as the client doesn’t know we’re using URL rewriting on the server.
To get around this problem, several options are possible. I’ll list few of them here, some good, some even worse. Of course, these are not the only ones, but these were the ones I looked at to solve my problem. Other solutions might be even better, so any input and feedback is welcome. My solution is much easier and fits my needs. It’s posted below the other options.
- Override the Render() method of your base page or masterpage: URL rewriting breaks ASP.NET 2’s themes
- Use RewritePath Method (String, Boolean) with the second parameter (rebaseClientPath) set to false. (Huh? custom code?)
- Move your images and stylesheets out of the App_Themes folder (WTF?): URL Rewriting and folders with dashcommerce
- Hardcode your links to stylesheets and images (OMG!)
- I’m not going to list any more options as it’s getting worse and worse…
But why don’t you use the power when you’re using the force?
I wrote a rule that is processed before any other rule, and which takes any url pointing to file in an App_Themes folder (or just a stylesheet, which is also possible in the same way):
- Pattern: ^(.+)/App_Themes/(.+)
- Rewrite URL: App_Themes/{R:2}
- and check "Stop processing of subsequent rules"
If you make sure that this rule is processed before the other regular rules by moving it to the top in the ordered list, than all references to theme files (stylesheets, images,…) are correctly served and your layout remains correct.
SEO Basics, introduction to Search Engine Optimisation
Search Engine Optimisation (SEO) is the on-going process of making sure that your web site performs as well as possible on specific search engine searches.
This article aims to explain the absolute basics of SEO that every web site designer, developer, or owner should know.
web design from scratch – SEO Basics, introduction to Search Engine Optimisation
A List Apart: Articles: Graceful E-Mail Obfuscation
Many web users don’t understand the inevitable consequences of exposing their e-mail address on the web. Experienced web developers and website owners, however do. Thousands of spam bots tirelessly crawl the web to collect e-mail addresses exposed on websites, in blog comments and elsewhere. These addresses end up in databases sold to unsavory marketers, who bombard the owners’s inboxes with unsolicited mail.
Of course, spam is an increasingly complicated problem that can never be solved by the efforts of web developers alone. But don’t underestimate your own powers.
10 SEO tips for your ASP.NET website – The Code Project – ASP.NET
10 Tips on SEO for your ASP.NET website. I´m sorry, that some of the screenshots contain german language, but I hope you´ll get my point despite that 🙂
The Code Project – ASP.NET: 10 SEO tips for your ASP.NET website