URL Rewriting with IIS
It seems that the topic of the day, or rather the past 2 days, has been URL rewriting with IIS. Yesterday I read of Scott Hanselman’s realization concerning the different ways it was possible to get to his blog.
Nothing new really, but very valid. Page ranking can be affected by allowing these to methods. Many engines may recognize these as duplicate content rather than the same actual page. It makes one wonder if the terms URL and URI should really stand for Unique. Perhaps we could start calling them AURL’s and AURI’s, for Almost. I suppose it all depends on your point of view.
Scott’s discovery is simple to fix in Apache, as he describes, and as he points out it can also be accomplished with ISAP_Rewrite. Jeff Atwood talks more about this in his discussion about URL rewriting. He further hits upon a technique that we have used to avoid image hotlinking. Image hotlinking is the practice of someone putting an image in their web page that simply links to an hosted someone other person’s site. The effects of this can include increased bandwidth usage, inaccurate statistics and is considered, perhaps not unethical but certainly not accepted.
We decided to use ISAPI_Rewrite. We did try free option mentioned by Jeff, Ionic’s ISAPI Rewrite Filter, but the quirks weren’t worth the price of purchasing the product from Helicon. A colleague of mine at work has a good handle on the syntax. So far we have been very happy with the results and the performance. In our case the original need came from the requirement to integrate a commercial web package that performed some functions with one that we developed for other functionality. We had the need to provide a single login point rather than two authentication pages and it had to come before ASP was handed the request.
RewriteCond Host: (app\.mydomain\.com)
RewriteRule (?i:/login.aspx\??(.*)) http://www.mydomain.com/Login.aspx?FromApp=true&$2 [R]
We used similar methods to redirect to pages for the users profile, password changing and other things. It seems to work pretty good so far, and with it came the ability to fix the problems mentioned by Jeff and Scott.
If you have any concern at all about the variables that can affect your page rank with the search engines you should analyze your pages and the possible ways they can be accessed and determine whether or not you need to use URL rewriting.
One last point. If you are not concerned about your page ranking, you should be. Otherwise, why put your content on the Internet?
Share this:
Like this:
February 22, 2007 - Posted by palehorse | Internet, Operating Systems, Windows
No comments yet.
Leave a Reply Cancel reply
Pale Tweets
- I just unlocked the “Flame Broiled” badge on @foursquare! Cheeseburgers all around! http://t.co/a8qihs58 3 days ago
- I just ousted Doug S. as the mayor of Excel Fitness on @foursquare! http://t.co/LzAXKJUx 2 weeks ago
- I just ousted @passi0n as the mayor of Timbers on @foursquare! http://t.co/MGG1KhxA 1 month ago
The Cloud
Archives
Pale’s Social Graph
Google Reader Shared Stuff- Microsoft releases Bing app for Android, iOS, not Windows Phone 7
- Google Tweaks Algorithm As Concern Over Bing Grows
- First Android Device Certified For DoD Personnel
- Stupid Router Tricks (or how to use DD-WRT to extend the range of a network)
- Steve Jobs Biography Reveals Reflections On Apple, Contempt For Android
- Galaxy Nexus signup page includes seven US carriers, endless speculation
- I swear to God this is what they must be doing
- Google Promises Android 4.0 For The Nexus S, “Theoretically” For Gingerbread Devices, Too
- Mac Trojan Disables XProtect Updates
- HTML 5 and CSS: Six complete lessons, free for students, faculty, you and me too!
Pale Tweets
- I just unlocked the “Flame Broiled” badge on @foursquare! Cheeseburgers all around! http://t.co/a8qihs58 3 days ago
- I just ousted Doug S. as the mayor of Excel Fitness on @foursquare! http://t.co/LzAXKJUx 2 weeks ago
- I just ousted @passi0n as the mayor of Timbers on @foursquare! http://t.co/MGG1KhxA 1 month ago
Blogroll