Skip to content
  • Digital Marketing
    • Content Marketing
    • Copywriting
    • Email Marketing
    • SEO – Search Engine Optimization
    • eCommerce
    • Web Design
    • Web Development
  • Demand Generation
  • About
Menu
  • Digital Marketing
    • Content Marketing
    • Copywriting
    • Email Marketing
    • SEO – Search Engine Optimization
    • eCommerce
    • Web Design
    • Web Development
  • Demand Generation
  • About
Contact
Web Design and Web Development | MagicLamp
  • Digital Marketing
    • SEO – Search Engine Optimization
    • Content Marketing
    • Copywriting
    • Email Marketing
    • eCommerce
      • eCommerce Web Design
      • eCommerce Web Development
      • Benefits of a Professional eCommerce Web Developer
    • Web Design
      • Mobile & Tablet Web Design
      • Web Design for eCommerce
      • Web Design for Lead Conversion
    • Web Development
      • Web Development for eCommerce
      • WooCommerce and WordPress
      • WooCommerce Web Development and Customization
      • WordPress Experts
  • Demand Generation
  • About
    • Webmail
    • Portfolio
    • Blog
    • Web Development Staff
    • Web & Internet Infrastructure
    • Call Us @ 877 923 4678
  • Contact

301 Redirects on IIS using ASP

If you are reading posts about “Google’s Duplicate Content Penalty” in reference to sites that your site could be reached at www.mydomain.com and mydomain.com, with the common remedy of using a 301-redirect, but run your site on IIS, this article is for you. The 301 code cited was undoubtedly Apache-targeted, in the form of a sample htaccess file and which isn’t really applicable to you.

In terms of options for 301-redirects on IIS, what I found on the web was interesting:
1) Pure IIS based redirects (via the IIS MMC Snap-in and the metabase)
2) ISAPI Redirect Filters – seemless integration into the webserver itself
3) ASP (woohoo!)

For IIS based redirects, the problem (if you don’t want to pay for an ISAPI filter) is that not only do you need admin-access-with-GUi-shell to the server, but you also had to create a separate instantiation of each site, one with the 301-redirect, and then another with the real site. Doubling up the instantiations could press the limits of the metabase on 200+ domain servers (and this is for 2GHz 1GB RAM machines). We could solve the admin-access-with-GUi-shell with some swift ADSi code, but why bother?

In walked the solution:
http://evolvedcode.net/content/code_relocated/

This website is trully a resource for people doing ASP code, and highly recommend reading through his other articles. Evolved Code’s samples will need som extensions for proper 301 redirects if you are handling more than one page that needs this functionality, but it will definitely get you started.

Another site with good example code for .NET is:
http://www.kevinleitch.co.uk/wp/?p=218

Happy Redirecting!

 

Tags
Adaptive Design (1) Awards (1) CRM (1) Cross-indexed merchandising (1) Custom CMS (1) Customer Expectations (1) Customer Service (1) Custom Theme (2) Digital Marketing (7) Faceted Classification (3) Graphics (3) HTML (1) IIS (1) Internet Explorer (1) Locator Integration (1) Magic Shopping Cart (1) Merchandising (1) Minimalist Design (3) Mobile Optimization (3) Online Credibility (1) PayPal (1) Programming (1) Responsive Design (3) Security (2) SEO (4) Social Media Integration (1) Spam (1) Tags (1) Usability (4) Visitor Conversion (6) Visual Appeal (3) Web Development (10) Web Fonts (1) WooCommerce (1)
Articles and Reviews
  • Science Fiction or Science Future? Web Design Meets Mobile Tech
  • The Future is Mobile: Which Kind of Responsive is Right for You?
  • Graphic Possibilities With Open Source Web Fonts.
  • Faceted Classification Part 3: The Power to Merchandise
  • Faceted Classification Part 2: Doing It Right
Ready to talk to us?

We are an account based marketing agency.

Twitter Facebook-f Linkedin

Digital Marketing

  • Demand Generation
  • Search Engine Optimization
  • Content Marketing
  • Copywriting & Messaging
  • Email Marketing

Websites

  • Web Design
  • Web Development
  • eCommerce
  • Mobile Design
  • Woocommerce

About

  • Portfolio
  • Staff
  • Blog
  • Infrastructure
  • Contact

©2022 MagicLamp Inc. -- All rights reserved

Made with ❤ by Elementor

Posting....
Scroll back to top
We use information collected through cookies and similar technologies to improve your experience on our site, analyse how you use it and for marketing purposes.
Privacy Policy

Your privacy settings

We and our partners use information collected through cookies and similar technologies to improve your experience on our site, analyse how you use it and for marketing purposes. Because we respect your right to privacy, you can choose not to allow some types of cookies. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. In some cases, data obtained from cookies is shared with third parties for analytics or marketing reasons. You can exercise your right to opt-out of that sharing at any time by disabling cookies.
Privacy Policy
Allow all

Manage Consent Preferences

Necessary
Always ON
These cookies and scripts are necessary for the website to function and cannot be switched off. Theyare usually only set in response to actions made by you which amount to a request for services, suchas setting your privacy preferences, logging in or filling in forms. You can set your browser to block oralert you about these cookies, but some parts of the site will not then work. These cookies do notstore any personally identifiable information.
Analytics
These cookies and scripts allow us to count visits and traffic sources, so we can measure and improve the performance of our site. They help us know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies and scripts, we will not know when you have visited our site.
Embedded Videos
These cookies and scripts may be set through our site by external video hosting services likeYouTube or Vimeo. They may be used to deliver video content on our website. It’s possible for the video provider to build a profile of your interests and show you relevant adverts on this or other websites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies or scripts it is possible that embedded video will not function as expected.
Marketing
These cookies and scripts may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies and scripts, you will experience less targeted advertising.
Confirm my choices Allow all
Verified by ConsentMagic