There are several ways to redirect a domain name to your TeamSnap site, but all require that you have access to the web hosting directory for your domain name, and some knowledge of web programming.
This is a pretty advanced move, so if you’re not experienced with managing files for a website hosting account, you might want to consult with your web hosting support department before you try this.
The first thing you’ll need to do is identify your team’s ID number. Just sign in to your team site (so that you’re looking at the Roster page, for example) and then look for the number in the URL.
For example:
http://go.teamsnap.com/2790/roster/list
In this example, the team ID number is “2790″. Identify your own team ID number now and write that down. Now you’re ready to redirect your domain name to point to your TeamSnap site. There are 3 primary methods for doing this:
Method A: Creating an .htaccess file
If you can create a text file at the root level of your domain’s website directory, this method can work really well.
- Create a file at the root level of your domain’s website directory, and name it “.htaccess”. (Note the period before the letter “h”. This is very important.)
- Open that file with a text editor (e.g. Vi, Pico, Notepad, EMACS, etc).
- Put the following code into the file, and then save it:
Redirect 301 index.html http://go.teamsnap.com/TEAM_ID
You’ll want to type your team ID number instead of “TEAM_ID”. Additionally, if your domain is hosted on a Windows server, you’ll want to change “index.html” to “default.htm”. (The filename “index.html” is used by UNIX servers.)
Method B: Using PHP
If you can use PHP scripting with your domain, you can use it to redirect to your team site.
- Create a file at the root level of your domain’s website directory, and name it “index.html”. (If you are using a Windows web host, you’ll want to call this file “default.htm”.)
- Open that file with a text editor (e.g. Vi, Pico, Notepad, EMACS, etc).
- Put the following code into the file, and then save it:
<?php
header( "HTTP/1.1 301 Moved Permanently" );
header( "Status: 301 Moved Permanently" );
header( "Location: http://go.teamsnap.com/TEAM_ID" );
exit(0);
?>
Method C: Using ASP
If you can use ASP scripting with your domain, you can use it to redirect to your team site.
- Create a file at the root level of your domain’s website directory, and name it “default.htm”. (If you are using a UNIX web host, you’ll want to call this file “index.html”.)
- Open that file with a text editor (e.g. Vi, Pico, Notepad, EMACS, etc).
- Put the following code into the file, and then save it:
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://go.teamsnap.com/TEAM_ID"
%>
Using one of the methods above, you’ll now be able to have people go to your domain name and it will automatically redirect to your TeamSnap site.