Skip to content
Short url redirector with no database required.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Short url redirector with no database required.

Language: C#

Platform: ASP.Net 4.0

See the change log for changes.

This project is replaced

This project is replaced by the dotnet core 3.1 version of ShortUrl.

Converting configs

You can use the tool ConvertConfigToShortUrlCore to convert all old configs to the new format. Place all old configs and the new config file (optional) into the binary folder of the converter project and run the project.


  • No database required.
  • Multiple host names supported.


1 Edit DefaultSite setting in web.config: When this site is accessed with an unknown host name, the browser will be redirected to this site.

2 Create Setting.*.txt in the root folder.

2.1 Copy file from Setting.localhost.txt to new name. * is the host name of your web site, like "" (without quotes).

2.2 All settings of this file can be changed later online.

2.3 Each host need a dedicated file.

3 Optional: If your domain has aliases.

3.1 Create Redirect.*.txt in the root folder. * is the alias host name of your web site, like "" (without quotes).

3.2 The content of the text file should be the target host name, like "" (without quotes).

3.3 Each alias host need a dedicated file.

4 Upload files to server, including:

bin folder and its contents

5 Access your site url with $$$$Manage$$$$ to setup. e.g.$$$$Manage$$$$

Setup Page

Default: The default redirect url. When the key cannot be recognized, the request will be redirected to this url.

Reload: The key for reloading setting file from disk to memory.

Manage: The key for accessing manage page. You should change this setting ASAP and keep this string safe for yourself only.

These settings above cannot be empty or spaces only.

Click Save button below this table after you change these settings.


Add/Change: Add or change a key value mapping. If the value is empty, the record with the same key will be deleted.

Delete (Checkbox): Check to delete the record in the same line.

Save button below this table: Add, change or delete records.

For user

When a user access your site by a host name with no key or a key not matched to any rules below, it will be redirected to the Default address of this host name.

If the setting file of the host name cannot be found, it will be redirected to the address set in Web.Config.

When the key is matched with Reload setting, ShortUrl will reload the setting file from disk and reply OK.

When the key is matched with Manage setting, it will go to the setup page. CAUTION: You need to protect this key and access. Accessing setup page with HTTPS is recommended.

When the key is matched with the key of any records, it will be redirected to the value of the matched record.



You can’t perform that action at this time.