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
- 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
- Click on the subdomain you want to add it to.
- Click on the Add button. The Web / Script Aliases window will open (Figure 2).
- 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.
- Enter the alias path name in the URL path name field.
- Enter the alias absolute path in the Absolute path name field.
- Click the Finish button.
(Figure 2: Alias Window Example Screen)
Edit an Existing Alias
- Click the edit icon ( ) on the end of the table of aliases from the Aliases List box (Figure 1).
- The Web / Script Aliases window will open letting you adjust the alias settings (Figure 2).
Deleting an Alias
- Check the box ( ) next to the alias you wish to delete from the Aliases List box.
- Click the Delete button.
- A window will pop up asking you to confirm the deletion. Click the OK button to delete the alias.