Back to Tools and Features

How To Manage Web Aliases In Site Manager

Web Aliases allow you to map directories to other locations within your account. You can create two types of aliases:

  • Web Alias: This is an alias mapping one directory to another. It does not allow the execution of scripts.
  • Script Alias: This is an alias mapping one directory to another with the added ability of being able to execute the scripts contained in the aliased directory.

By aliasing directories, you can help prevent visitors to your site from getting a 404 error or missing pages on a commonly misspelled directory by aliasing common misspellings to the proper location. You can also use this to share directories common to several domains without having the same files installed multiple times. The same applies to a script alias that will allow you to share one cgi-bin across multiple domains.

When you view the Domain Settings>Web Aliases page, you will be shown a list of your current domains and subdomains, as well as a list of aliases for the currently selected domain. (Figure 1).

(Figure 1: Web Aliases Example Screen)

See Aliases for Other Domains

  1. Click on the domain in the list and the current aliases will be displayed. If you add a sub-domain or a second domain to your account, there will not be any additional aliases created. By default, the domain aliases created for the main domain will apply to all domains and subdomains. If you create an alias that is the same as an existing alias, the alias specific to the domain will take precedence.

Adding a New Alias

  1. Click on the subdomain you want to add it to.
  2. Click on the Add button. The Web / Script Aliases window will open (Figure 2).
  3. Choose whether to add a Web Alias or Script Alias from the Alias Type box by clicking the radio button (  ) next to the desired option.
  4. Enter the alias path name in the URL path name field.
  5. Enter the alias absolute path in the Absolute path name field.
  6. Click the Finish button.

(Figure 2: Alias Window Example Screen)

Edit an Existing Alias

  1. Click the edit icon (  ) on the end of the table of aliases from the Aliases List box (Figure 1).
  2. The Web / Script Aliases window will open letting you adjust the alias settings (Figure 2).

Deleting an Alias

  1. Check the box (  ) next to the alias you wish to delete from the Aliases List box.
  2. Click the Delete button.
  3. A window will pop up asking you to confirm the deletion. Click the OK button to delete the alias.

Related Articles

How To Create And Download A Backup
How To Delete Your Content
Does WestHost Offer Ruby On Rails Support
What Perl Modules Are Installed By Default
Does WestHost Allow TeamSpeak

Can’t Find what you need?

No worries, Our experts are here to help.