Support
- Advanced Backup
- Client Side
- Cloud Enterprise
- ColdFusion
- Control Panel
- cPanel
- Customer Portal
- DNS Information
- Dedicated Servers
- DirectAdmin
- Domain Name
- dotDefender
- Dreamweaver
- FileCatalyst
- Front Page
- FTP
- General Information
- Hosted Exchange & SharePoint
- IIS6
- IIS7
- Juniper Netscreen Firewalls
- Linux
- List Server
- MIVA Merchant
- MySQL
- Patching / Server Updates
- phpMyAdmin
- Plesk
- Policies and Procedures
- Premium Spam Filtering
- Programming
- Ruby on Rails
- Search Engine Submission
- SharePoint 3
- SharePoint 2010
- SiteDesigner
- SmarterMail 3
- SmarterMail 4
- SmarterMail 5
- SmarterMail 6
- SmarterMail 7
- SmarterStats
- SmarterTrack
- SQL Server
- Secure Socket Layer (SSL)
- Uploading Your Website
- Video Tutorials
- Windows Server 2003
- Windows Server 2008
- Web Design
- WordPress
- Advanced Monitoring
- MediaWiki
- Enkompass
- Microsoft Outlook 2010
- Android
- Outlook Web Access
- Critical Availability Service
- NAS Data Transfer
- Customer Portal Demos
- Joomla
- Moodle
- Cloud Dedicated
- Gallery CMS
- phpBB
- Standard Monitoring
- Righteous Restore
- NAS (Network Attached Storage)
- Networking
- SmarterMail 8
- PCI Security Scan
- LinkTiger
- Windows Cloud VPS
- Linux Cloud VPS
- Linux VPS
- Windows VPS
- Hyper V
- ENSIM
- Alert Logic
- Webmin
- e107
- Vbulletin
- VPN
- Visual Vault
- Mozilla Thunderbird
- PyroCMS
- Active Directory
- Vmware Related
- Drupal
ASP Redirect Script examples
Although we only support one website per hosting account, you are allowed to use scripting methods to host multiple websites from one hosting account. We do not support this type of programming, so this is for information purposes only.
The following are some sample ASP scripts that you can use.
Point a domain name to a specific file:
<%
If Request.ServerVariables("HTTP_HOST") = "www.example.com" Or Request.ServerVariables("HTTP_HOST") = "example.com" Then
Response.Redirect("http://" & Request.ServerVariables("HTTP_HOST") & "/test.asp")
End If
%>
Point a domain name to a specific folder:
<%
If Request.ServerVariables("HTTP_HOST") = "www.example.com" Or Request.ServerVariables("HTTP_HOST") = "example.com" Then
Response.Redirect("http://" & Request.ServerVariables("HTTP_HOST") & "/example/")
End If
%>
Point a domain name to a specific file in a subfolder:
<%
If Request.ServerVariables("HTTP_HOST") = "www.example.com" Or Request.ServerVariables("HTTP_HOST") = "example.com" Then
Response.Redirect("http://" & Request.ServerVariables("HTTP_HOST") & "/example/example2/file.asp") End If %>
