Larry Brouwer

... just my personal technology sandbox

  • About
  • Blog
  • Archives
  • Contact

Connect

  • Email
  • Facebook
  • LinkedIn

Powered by Genesis

Implementing 301 Redirects from my old blog site

May 10, 2010 By Larry Brouwer Leave a Comment

Ok, so, I have two (2) blogs going right now. My first one is a BlogEngine.Net site which I called my TechNotes. It is located at https://www.larrybrouwer.com:81. My current blog is a WordPress site located at https://www.larrybrouwer.com. This is a problem because the search engines are spidering both, and there are now duplicate entries. Worse yet, the old site is getting priority, so visitors are being directed to my old TechNotes blog instead of my most current one.

What I need to do, is to implement a re-direct solution to retire the old blog gracefully and allow the search engines to be aware of the change.

After some Googling on “301 Redirects IIS7”, and reading a few articles on the subject, I decided to give it a try. I logged into my web server and opened up the IIS Manager Console. I then opened up my web site and first went into HTTP Redirect. This has some promise, but it only allows for wholesale redirects of the entire website to another location. What I need, at least initially, is the ability to redirect individual posts (or pages) of my old blog to my new one.

I next went into the URL Rewrite module of my website. This seems to have the ability to map individual pages. I then entered a test rewrite mapping rule. I selected “Matches the Patter” in the Requested URL field, and “Exact Match” in the Using field. I then entered the Entire URL into the Pattern field and selected Ignore case. In the Action section, I chose “Redirect” for the Action Type and entered the entire new URL location for the Redirect URL, and selected “Permanent (301)” for the Redirect type.

I then restarted the web site, and browsed to the old location. Nothing happened. Not knowing why it didn’t work, I repeated the process several times and finally came to a pattern that works. The pattern that works does not have the “http://www.domainname.com:81/technotes/”.

Once I got this working, I then began mapping all of my old blog entries (there aren’t very many) to my new ones. I want to keep the TechNotes site alive for a while until the search engines can update the links to my individual posts. Once they have been updated, I’ll take down that site permanently.

Here is what the “rewrite” section of my web.config looks like:

        <rewrite>
<rules>
<remove name=”test” />
<
rule name=”Installing BlogEngine.Net” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/03/29/Installed-BlogEngineNet.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/03/29/installing-blogenginenet/” />
</
rule>
<rule name=”Microsoft Visual Studio Tips Part 1 – Basic Editing and Navigation” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/03/31/Microsoft-Visual-Studio-Tips.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/03/31/microsoft-visual-studio-tips-part-1-basic-editing-and-navigation/” />
</
rule>
<rule name=”IIS7 Statistics Reporting with Log Parser and AWStats” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/26/IIS7-Statistics-Reporting-with-Log-Parser-and-AWStats.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/26/iis7-statistics-reporting-with-log-parser-and-awstats/” />
</
rule>
<rule name=”Adding AWStats to DotNetNuke (DNN)” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/26/Adding-AWStats-to-DotNetNuke-(DNN).aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/26/adding-awstats-to-dotnetnuke-dnn/” />
</
rule>
<rule name=”IIS7 Extensions Loaded on development web server” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/29/IIS7-Extensions-Loaded-on-development-web-server.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/29/iis7-extensions-loaded-on-development-web-server/” />
</
rule>
<rule name=”Blank emails with OfficeLive Outlook Connector and repairing Outlook 2007 .PST files” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/30/Blank-emails-with-OfficeLive-Outlook-Connector-and-repairing-Outlook-2007-PST-files.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/30/blank-emails-with-officelive-outlook-connector-and-repairing-outlook-2007-pst-files/” />
</
rule>
<rule name=”2010-03-30 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/03/30/2010-03-29-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/03/30/implementing-blogengine-net-for-hcmga/” />
</
rule>
<rule name=”2010-03-31 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/03/31/2010-03-31-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/03/31/visual-studio-training-materials/” />
</
rule>
<rule name=”2010-04-01 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/01/2010-04-01-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/01/dotnetnuke-installation-steps-on-my-web-server/” />
</
rule>
<rule name=”2010-04-05 Notes for the day” stopProcessing=”true”>
<match url=”post/2010/04/05/2010-04-05-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/05/how-i-fixed-my-maytag-neptune-washing-machine/” />
</
rule>
<rule name=”2010-04-06 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/06/2010-04-06-e28093-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/06/learning-dotnetnuke/” />
</
rule>
<rule name=”2010-04-07 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/07/2010-04-07-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/07/installing-blogengine-net-for-hcmga/” />
</
rule>
<rule name=”2010-04-19 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/19/2010-04-19-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/19/learning-visual-studio-2010-silverlight-4-net-framework-4/” />
</
rule>
<rule name=”2010-04-20 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/20/2010-04-20-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/20/continued-blogengine-net-installation-for-hcmga/” />
</
rule>
<rule name=”2010-04-23 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/23/2010-04-23-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/23/fixed-yahoo-mail-pop3-integration-with-outlook-2007/” />
</
rule>
<rule name=”2010-04-24 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/24/2010-04-24-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/24/debugging-d-link-dir-655-router-issues/” />
</
rule>
<rule name=”2010-04-28 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/28/2010-04-28-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/28/fixing-sqlserver-database-mail-for-hcmga/” />
</
rule>
<rule name=”2010-04-29 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/29/2010-04-29-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/29/researching-wordpress-for-clear-lake-auto-service/” />
</
rule>
<rule name=”2010-04-30 Notes for the day” patternSyntax=”ExactMatch” stopProcessing=”true”>
<match url=”post/2010/04/30/2010-04-30-Notes-for-the-day.aspx” />
<
action type=”Redirect” url=”https://www.larrybrouwer.com/2010/04/30/blank-emails-with-officelive-outlook-connector-and-repairing-outlook-2007-pst-files/” />
</
rule>
</rules>
</rewrite>

 

My last task was to do a Google search on my website and to add all the redirects into IIS7 from missing pages to remap them to the current ones. This will take some time. Hopefully it will be worth the effort!

I then went into IIS7 Manager Console and opened my old blog site. I have the SEO (Search Engine Optimization) Toolkit installed, so I opened the toolkit and clicked Add a new disallow rule and Disallowed all searches past my blog. This should prevent any further spiders from coming in.

Filed Under: Daily Log Tagged With: 301, IIS7, redirect

Leave a Reply

You must be logged in to post a comment.

Recent Posts

  • Weaver’s Bamboo “Bambusa textilis” clumping bamboo for sale
  • configuring NTP Service on FreeNas, XenServer, and virtualized Windows Server 2012 R2 Domain Controller
  • CentOS 7 Warning: Your Magento folder does not have sufficient write permissions.
  • AOE Scheduler 1.3.0 cron issue with Magento 1.9.2.2

Tag cloud

SVN Comcast IIS7 OfficeLive SBS2011 Exchange 2010 BlogEngine.Net Database Mail CentOS clumping bamboo PrestaShop SMTP DIR-655 Windows Remote Desktop SSMS redirect PHP SmarterMail iframe Spam WordPress Outlook Connector Windows 7 D-Link TomatoCart Neptune 301 Tools Silverlight Azure SSL Maytag eCommerce Visual Studio Linux Magento Log Parser MySQL Yahoo Mail SqlServer OpenCart Outlook 2007 C# AWStats Google Analytics