Dynamic Website Redirects

Rating: No reviews yet
Downloads: 784
Released: Apr 13, 2009
Updated: May 18, 2009 by mikeruberg
Dev status: Stable Help Icon

Recommended Download

Application LOS_WebRedirects_1_1
application, 9K, uploaded Apr 14, 2009 - 784 downloads

Release Notes

What is it?

WebRedirects is a dynamic alias redirection web application. It lets you easily add new alias redirections instead of having to modify your web server or code. It was originally created for SharePoint alias redirects, but it can be used with any website URL.

Example: Joe User wants an alias called myalias. He wants to be able to type in http://myalias and be redirected to his site at http://mysharepoint/sites/mysite/myweb/mysubweb/. With this redirection application, you just need to create the alias, point it to this application, and create the correct redirection. You can have as many redirections as you need.

Setup

  1. Create a new database on your SQL server along with a good login account for the web application to use.
  2. Run the CreateTable.sql script to create the table needed. You might need to change the very first line of the script to match the name of the database you created. I used SPRedirects as my database name.
  3. Copy the web files to your IIS site, and make sure your IIS site is using the .net 2.0 framework in IIS Manager.
  4. Open the web.config and make all the needed changes.
    1. Change the SQL connection string for your SQL server. Search for "sqlConn" to find where to change it.
    2. Change the domain app key for your domain. Search for "mydomain.com" to find where to change it.
    3. Change the security group to use for the admin.aspx page. Search for "mydomain\mysecuritygroup" to find where to change it.
  5. In IIS Manager, open the properties for admin.aspx
    1. Uncheck the "Enable anonymous access" box.
    2. Check the "Basic authentication" box. You can add in the "Default domain" and "Realm" it you want.

Changelog

Version 1.1 - April 13, 2009
  • Redirections can now have additional URL strings appended onto them from the original request. For example, if you have redirect for http://alias to go to http://mysite/foo, you can enter http://alias/bar/product.aspx?id=1 in your browser and you will be redirected to http://mysite/foo/bar/product.aspx?id=1
  • I have added the ability to search for a single alias on the admin page, and then update from that search result. This will help people find an existing redirection alias when they have a lot of records in their database.

Reviews for this release

No reviews yet for this release.