![]() |
Frequently Asked Questions |
![]() |
24/7 Expert Phone Support |
![]() |
Email Customer Support |
![]() |
Request Callback |
![]() |
Site Map |
![]() |
My Account |

You can check your Data Transfer usage from your Control Panel.
Login to your Control Panel support page at https://support.myhosting.com/.
The procedure for adding a custom 404 page will vary depending on what platform your web site is hosted on.
Windows 2008 Platform
If you have signed up on February 28, 2008 or later for the Premium or Professional plan and want to customize the 404 page for the Windows portion of your hosting plan, please follow these instructions.
First, connect to your site using the IIS7 Manager tool. Once you have installed the tool on your computer, you can follow these steps to make the connection.
Now you can navigate to the Error Pages section. Here you can add or remove custom error pages for various status codes including 404, and edit the path to point to the custom page for each error code.
Windows 2003 Platform
If you signed up before February 28, 2008 and want to customize the 404 page for the Windows portion of your hosting plan, then you can activate a customized the 404 page through your Control Panel.
Here you can activate the custom 404 message. Before doing so please make sure you have created and uploaded a 404.asp or 404.html to the main directory of your account.
Linux Platform
If you want to customize the 404 page for a Linux web site, you can create a .htaccess file and insert the following line:
ErrorDocument 404 /404.html
Then upload a file called 404.html to the path specified in your .htaccess file.
Due to security concerns, Telnet and SSH access are not supported with our Linux hosting platform.
There are a number of different ways you can redirect traffic from one page to another. Below are 5 examples which you can try:
Simple META Tag Redirection
You can use a simple META tag to redirect traffic from one area of your site to another. For example, if you want to redirect your visitors from www.yourdomain.com to x.yourdomain.com, you could insert the following tag inside the HEAD of your HTML file:
<META HTTP-EQUIV=REFRESH CONTENT="0; URL=http://x.yourdomain.com">
Anyone viewing that page would be redirected to http://x.yourdomain.com in 0 seconds.
Simple ASP Redirection
You can also create a simple redirection script using ASP, to redirect traffic from your Windows account. You can simply create a new ASP file named default.asp which includes the following code:
<%
Response.Redirect ("http://x.yourdomain.com")
%>
Please note that since this is an ASP script, it will not work under your Linux account.
Simple HTML Redirection using Frames (with cloaking)
You can use a frame-set to redirect traffic from one area of your site to another. The advantage of this method is that the domain name still shows in the browser's address bar even after the redirection. This is achieved by "hiding" the redirection in a frame-set where the first frame is zero width or height:. You can create a new file named index.html and include the following code:
<html>
<frameset cols="0,*" framespacing="0" border="0" frameborder="0">
<frame name="zero" scrolling="no"
noresize>
<frame name="main" src="http://x.yourdomain.com">
</frameset>
</html>
Advanced ASP Redirection
Using this ASP example, you can redirect more than one domain to more than one destination. Create a default.asp file with the following code:
<%
Select Case Request.ServerVariables("HTTP_HOST")
Case "yourdomain.com", "www.yourdomain.com"
Response.Redirect "http://x.yourdomain.com"
Case "yourothername.com", "www.yourothername.com"
Response.Redirect "http://x.yourdomain.com/somewhere"
End Select
%>
Add "case" statements for each domain name you want to redirect. You can automate this further with a database containing each domain name and corresponding redirect destination.
Advanced ASP Redirection using Frames (with cloaking)
Another variant of the above example includes a "cloaking" option. This is basically a combination of example 3 and example 4. The domain name still shows in the browser's address bar even after the redirection. This is achieved by "hiding" the redirection in a frame-set where the first frame is zero width or height. Create a default.asp file with the following code:
<%
Select Case Request.ServerVariables("HTTP_HOST")
Case "yourdomain.com", "www.yourdomain.com"
destURL = "http://x.yourdomain.com"
Case "yourotherdomain.com", "www.yourotherdomain.com"
destURL = "http://x.yourdomain.com/somewhere"
End Select
%>
<html>
<frameset cols="0,*" framespacing="0" border="0" frameborder="0">
<frame name="zero" scrolling="no"
noresize>
<frame name="main" src="<%=destURL%>">
</frameset>
</html>
Add "case" statements for each domain name you want to redirect. You can automate this further with a database containing each domain name and corresponding redirect destination.
You can connect to MS SQL using Access, Enterprise Manager, Visual Studio, as well as through their .asp and .aspx scripts. You can also administer your MS SQL database directly by using our free browser-based administration tool available through the control panel.
Using the MS SQL Server 2000 database:
If your hosting package includes a Microsoft SQL server 2000 database, you can use several methods to connect to this database, in order to create tables, views, and stored procedures.
Using MS Access:
-SQL server: your SQL Server Name (*)
(*) You can find your SQL server name, login and password by logging in to your control panel and in the SQL Management area, click on 'Connection Info'.
You can now work directly on the SQL server, although it looks as if you are working in a local Access database. You can add tables, enter data etc. All changes are stored immediately on the SQL server.
Next time you can simply double click on the project file adp1.adp on your hard disk to reconnect. Access will be opened together with the SQL server connection.
If you create a new table, make sure to add a primary key to the table, otherwise you will not be able to use Access to edit data in the tables.
Using ASP.NET Web Matrix:
Select the Data tab on the right in Web Matrix and Click on the New Connection button. Enter your SQL server name, your user name and password. You can find your SQL server name, login and password by logging in to your control panel and in the SQL Management area, click on 'Connection Info'.
Using Visual Studio .NET:
(*) You can find your SQL server name, login and password by logging in to your control panel and in the SQL Management area, click on 'Connection Info'.
If you have Visual Studio .NET Enterprise Edition, you can use the data connection to create tables, views and stored procedures. In the other versions, you can only edit data within the tables.
Using Enterprise Manager
You can also use Enterprise Manager, a client tool which is part of the SQL Server product. You need an official SQL Server CD ROM to be able to install Enterprise Manager. Please refer to the manual to connect to an SQL server database. Enterprise Manager can be used to create and alter tables, views, stored procedures and data.
Import Data:
You can use Enterprise Manager to import existing tables with data from your local database. Make sure that your SQL server is registered in your Enterprise Manager. Select your database from the list of databases on this server. Right-click on your database and select "All Tasks --> Import Data". Follow the steps in the wizard. You can choose your source database (local) and destination database (on the myhosting server) and then select the tables that you wish to move.
Please note that database synchronization is not allowed and not possible on our shared SQL servers.
Accessing your database within your code:
From an ASP webpage:
If you are using ASP (for ASP .NET, see below), you can connect to the database with following sample code:
dim db
set db=server.createobject("ADODB.Connection")
db.ConnectionString="Provider=SQLOLEDB.1;Persist Security Info=True;" & _
"User ID=username;Password=xxx;Initial Catalog=databasename;" & _
"Data Source=sqlhosting01.myhosting.com"
db.open
Make sure to replace the servername sqlhosting01.myhosting.com, databasename, username and password with your SQL details, which you can find in your control panel in the SQL management area. After logging in on our website with your customer login and password, select your database from the dropdown list (if you have more than one) and click on "Verify connection string". On this page, you will also find a ready to use connection string, specifically for your database (you can simply copy & paste it into your code).
For more information on MS SQL and how to get a demo copy, go to http://www.microsoft.com/sql/downloads/trial-software.mspx#EIB
This code gives you the basics on how to send e-mails with ASP commands. You can send text or HTML, include CC and BCC recipients, and include any number of attachments. You can even send a text file or a complete HTML website as the content of your e-mail. Combined with its ability to receive and process e-mails, JMail is a component which gives your web site new dimensions of interactivity.
How to send the content of a web form to an email address
Below is a sample script describing how to send the content of a web form to an email address:
<%@LANGUAGE = VBSCRIPT%>
< html>
< body>
<%
'Collect form fields and their data
For Each x In Request.Form
message=message & x & ": " & Request.Form(x) & VBCrLf
Next
' Create the JMail message Object
set msg = Server.CreateOBject( "JMail.Message" )
' Set logging to true to ease any potential debugging
' And set silent to true as we wish to handle our errors ourself
msg.Logging = true
msg.silent = true
' Most mailservers require a valid email address for the sender
msg.From = "THIS SHOULD BE YOUR E-MAIL ADDRESS"
msg.FromName = "THIS SHOULD BE YOUR NAME"
' Next we have to add some recipients.
msg.AddRecipient "YOUR FORM WILL BE SEND TO THE E-MAIL ADDRESS WRITTEN HERE"
' The subject of the message
msg.Subject = "CHANGE THE SUBJECT LINE OF THE MESSAGE"
' Note the use of VBCrLf to add linebreaks to our email
msg.Body = "Results of your web form:" & VBCrLf & VBCrLf & message & VBCrLf
' To capture any errors which might occur, we wrap the call in an IF statement
' Replace ENTERYOURDOMAINHERE with your domain name, like yourdomain.com
if not msg.Send("mail.ENTERYOURDOMAINHERE" ) then
'This message is displayed if an error occurs
Response.write "An error occured. Please contact the webmaster of this site."
else
'This message is displayed if the message has been sent successfully
Response.write "Thank you for your submission.... Your message has been
delivered successfully."
end if
' And we're done! the message has been sent.
%>
< /body>
< /html>
You can further customize the script to reflect the following issues/questions:
Answer:
This is the order the server receives the data from the browser. You can customize how the data is interpreted by changing sendmail.asp as follows:
For Each x In Request.Form
message=message & x & ": " & Request.Form(x) & VBCrLf
Next
(do not delete <% on top),
then add
name = Request.Form ("name")
surname = Request.Form ("surname")
message = message & "Name: " & name & VBCrLf
message = message & "Surname: " & surname & VBCrLf
The above example assumes you have two form fields with names "name" and "surname". It gets their values from the form fields, and assigns them to variables and inserts the values into the message. Likewise, add all your form field names that you want to include in the e-mail. This way you have the full control to the order.
Answer: At the start of the form, refer to sendmail.asp in your form as
<FORM NAME="yourformname" METHOD="post" ACTION="/cgi-bin/sendmail.asp">
Can I customize my response after the form is submitted, instead of displaying simple text on the screen?
Answer: Yes you can. Instead of writing a simple text on screen, it can be redirected to
another page. This can be done thru modifying the following code:
else
'This message is displayed if the message has been sent successfully
Response.write "Thank you for your submission.... Your message has been
delivered successfully."
should be changed to
else
'This message is displayed if the message has been sent successfully
Response.Redirect ("../thankyou.html")
This change will display thankyou.html in your root directory after the message
has been sent successfully.
NOTE:
The myhosting.com eCommerce Add-On is included for free with the Basic, Premium and Professional hosting plans.
Customers with a Windows-based hosting plan will need to activate their free Linux Account. When activating your Linux account, you can select the sub-domain you wish to activate it with. If you are using your Linux account primarily for eCommerce, we recommend using a sub-domain name such as store.yourdomain.com or shop.yourdomain.com. If you previously activated your Linux account with x.yourdomain.com and want to change the x to something else, you'll first need to deactivate and then reactivate your Linux account.
Once your Linux account is ready, you will need to activate your Vanity SSL. After your Vanity SSL is activated, you can then install the Zen Cart or CubeCart shopping cart application from the Application Manager page.
Zen Cart is an open source shopping cart application created by a group of third-party developers. Because myhosting.com did not directly develop this application, we recommend that you consult Zen Cart's website and documentation for further assistance in setting up or troubleshooting your Zen Cart installation.
You can check the /docs folder under your Zen Cart installation for some help documents on how to get started. For additional assistance, you can check the Zen Cart Frequently Asked Questions or the Zen Cart Support Forum.
CubeCart is a shopping cart application created by a group of third-party developers. Because myhosting.com did not directly develop this application, we recommend that you consult CubeCart's website and documentation for further assistance in setting up or troubleshooting your Zen Cart installation.
You can check the CubeCart Support Page for further assistance.
Please note that CubeCart Support Tickets are restricted to customers who have purchased a CubeCart license. You can purchase a CubeCart license directly from cubecart.com for use with your myhosting.com eCommerce add-on. The purchase of a CubeCart license will allow you to remove the "Powered by" and "Copyright" text from the bottom of your shopping cart pages.






