PDA

View Full Version : Pointing a Pro account to someting other than homepage


thebigkr
Nov-10-2008, 12:17 PM
Would anybody know if it is possible to point a custom domain to a category rather than your homepage?

I would like to be able to have my family use the "me.smugmug.com" address to get to my homepage and direct the commercial traffic using the "www.mydomain.com" to a category such as www.mydomain.com/professional. It would be nice for my family to not have to interact with the business and really really nice if I could have the business not interact with the family stuff.

Thanks,
K

jfriend
Nov-10-2008, 12:45 PM
Would anybody know if it is possible to point a custom domain to a category rather than your homepage?

I would like to be able to have my family use the "me.smugmug.com" address to get to my homepage and direct the commercial traffic using the "www.mydomain.com" to a category such as www.mydomain.com/professional (http://www.mydomain.com/professional). It would be nice for my family to not have to interact with the business and really really nice if I could have the business not interact with the family stuff.

Thanks,
K

You could use javascript in your page to redirect anyone coming to www.mydomain.com to www.mydomain.com/professional. The script could be coded to leave your me.smugmug.com domain alone and do nothing.

The code to do this would go in your Top Javascript section and would look like this:

function CommercialRedirect()
{
// if we land at the top level of our custom domain
if (window.location.href == "http://www.mydomain.com/")
{
// redirect to our commercial category
window.location.replace("http://www.mydomain.com/Professional");
}
}

CommercialRedirect();

Obviously, you would put your own domain in.

thebigkr
Nov-10-2008, 01:07 PM
Nice!!

I'll give it a try and see how it goes.

Thanks much