PDA

View Full Version : Question for Andy about custom hostname


Mr.Skull
Sep-15-2007, 02:21 PM
A question for Andy. Since your site is the "example" site of Smugmug, I have been checking it out. I noticed that if I go to your site using your "real" Smugmug address of williams.smugmug.com, it will switch to moonriverphotography.com in the address bar! I have a custom hostname for my smugmug site, and it does not do that. Mine stays on the smugmug address if I type that in. I presume you are using some code to force the address bar to switch to your custom name? What is the secret method for this?
Thanks,
Joel

ivar
Sep-15-2007, 02:24 PM
I'm not Andy, but I can help you out here :D

Try our Advanced FAQ (http://www.dgrin.com/showthread.php?t=52811), #62 :thumb

Mr.Skull
Sep-15-2007, 09:33 PM
Of course, the Automagic nickname.smugmug to custom domain swapper. Thanks for the tip, it works great!

Andy
Sep-16-2007, 03:05 AM
Of course, the Automagic nickname.smugmug to custom domain swapper. Thanks for the tip, it works great!
:thumb

Ed911
Sep-18-2007, 11:47 AM
Andy,

I cut and pasted the following to the JS in my control panel...now I can't get to my web site at SmugMug. It redirects and www.ENHPhotography (http://www.ENHPhotography) comes up, but no page....so I'm sure that I forgot something. But the tip wasn't very specific.

I would appreciate your help...

Thanks, Ed



function redirectPath() {
re = /(ed911.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'www.ENHPhotography.com (http://www.ENHPhotography.com)');
window.location.href = tmp;
}
}
redirectPath();

photobanks
Sep-18-2007, 11:56 AM
Andy,

I cut and pasted the following to the JS in my control panel...now I can't get to my web site at SmugMug. It redirects and www.ENHPhotography (http://www.ENHPhotography) comes up, but no page....so I'm sure that I forgot something. But the tip wasn't very specific.

I would appreciate your help...

Thanks, Ed



function redirectPath() {
re = /(ed911.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'www.ENHPhotography.com (http://www.ENHPhotography.com)');
window.location.href = tmp;
}
}
redirectPath();

Ed,

Try this...

function redirectPath() {
re = /((www.)?ed911.smugmug.com)/;
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'http://www.ENHPhotography.com');
window.location.href = tmp;
}
}
redirectPath();

Michael

Ed911
Sep-18-2007, 03:29 PM
Thanks Michael,

I would love to, but I can't get to my web page to change anything. If I use the old address, it redirects to the new address, which in turn generates an error message...like cannot find page...leaving me with no option to change anything. :dunno

I will be sure to try your solution as soon as I can get back to my web page so that I can edit the JS. If you know how to do this, get my page to open, I would sure appreciate it.




Ed,

Try this...

function redirectPath() {
re = /((www.)?ed911.smugmug.com)/; (http://www.)?ed911.smugmug.com)/;)
tmp = window.location.href;
if (re.test(tmp)) {
tmp = tmp.replace(re, 'http://www.ENHPhotography.com');
window.location.href = tmp;
}
}
redirectPath();

Michael

Andy
Sep-18-2007, 03:46 PM
I removed the code from your site.

You must have your domain CNAMEd to SmugMug first, for this to actually work :)

More, here
http://www.smugmug.com/help/professional-accounts

Ed911
Sep-18-2007, 04:03 PM
I removed the code from your site.

You must have your domain CNAMEd to SmugMug first, for this to actually work :)

More, here
http://www.smugmug.com/help/professional-accounts

Thanks, Andy. Question...this will end up with my smugmug account having a custom web address, right. (so I need to register a domain name that I want to use for my smugmug website, and then Cname that domain so that it can be redirected to my now custom named smugmug site...have I got that?)

Thanks again,

Ed911
Sep-24-2007, 10:11 AM
I have my account at SmugMug setup so I can use my domain name instead of XXX.SmugMug.

Problem: When typing in my domain name, if I use WWW it works fine. But if I just type in my domain name sans the WWW, I find myself redirected to the SmugMug home page and not my SmugMug page.

Have any idea how to fix this?

I have the option to use my domain name w/o using the WWW enabled at my Godaddy account. I would like for this option to work, because a lot of people enter site names without using the WWW.

Thanks,

RogersDA
Sep-24-2007, 10:21 AM
I have my account at SmugMug setup so I can use my domain name instead of XXX.SmugMug.

Problem: When typing in my domain name, if I use WWW it works fine. But if I just type in my domain name sans the WWW, I find myself redirected to the SmugMug home page and not my SmugMug page.

Have any idea how to fix this?

I have the option to use my domain name w/o using the WWW enabled at my Godaddy account. I would like for this option to work, because a lot of people enter site names without using the WWW.

Thanks,

Assuming at godaddy you change the A record for the domain.

How long ago? It can take 1 to 2 days, sometimes, for the changes to propogate around the net.

ivar
Sep-24-2007, 12:24 PM
I have my account at SmugMug setup so I can use my domain name instead of XXX.SmugMug.

Problem: When typing in my domain name, if I use WWW it works fine. But if I just type in my domain name sans the WWW, I find myself redirected to the SmugMug home page and not my SmugMug page.

Have any idea how to fix this?

I have the option to use my domain name w/o using the WWW enabled at my Godaddy account. I would like for this option to work, because a lot of people enter site names without using the WWW.

Thanks,Can you give me your domain name so I can run a test and see if everything is set up correctly? :ear

Ed911
Sep-24-2007, 03:31 PM
Can you give me your domain name so I can run a test and see if everything is set up correctly? :ear

My domain name is www.pumpkinriver.com (http://www.pumpkinriver.com) (currently in use for SmugMug) Just tried it again...and w/o the www, it takes me to the SM homepage.

Thanks for your responses...you help is greatly appreciated. This is all new to me.

Allen
Sep-24-2007, 03:40 PM
My domain name is www.pumpkinriver.com (http://www.pumpkinriver.com) (currently in use for SmugMug) Just tried it again...and w/o the www, it takes me to the SM homepage.

Thanks for your responses...you help is greatly appreciated. This is all new to me.
Did you read this on this page (http://www.smugmug.com/help/professional-accounts)?


I don't want my visitors to have to type www...

If you just want your web address to be http://yourdomain.com instead of something like http://www.yourdomain.com, you can use the @ symbol instead of inserting the subdomain when setting it up. (A subdomain is the part the proceeds yourdomain.com — www is a common subdomain.) Registrars use the @ symbol to indicate the lack of a domain (rather than just leaving it blank).

Some registrars don't allow CNAMEs with @ symbols. They force you to use an A record instead. The basic principle is the same, but instead of pointing to www.smugmug.com it points to our IP address.

Gotcha: Our IP address might change in the future, causing an A record to break. For this reason we suggest trying a CNAME record first.
Our current IP address is 63.81.134.23

Ed911
Sep-24-2007, 03:42 PM
Assuming at Godaddy you change the A record for the domain.

How long ago? It can take 1 to 2 days, sometimes, for the changes to propagate around the net.



I have an A record for the domain. I set it when I Cnamed my domain. (about 24 hours ago. The Cname already propagated...so i thought the A record must have also.)

Isn't that why I can access the domain w/o typing www when I enter the site address? Just wondering...new to this sort of stuff...it is my first time.:dunno

Thanks,

Ed911
Sep-24-2007, 03:56 PM
Did you read this on this page (http://www.smugmug.com/help/professional-accounts)?


Yes...and the instructions were a bit daunting to say the least...for a novice anyway.I don't want my visitors to have to type www.. (http://www..).

If you just want your web address to be http://yourdomain.com instead of something like http://www.yourdomain.com, you can use the @ symbol instead of inserting the subdomain when setting it up. (A subdomain is the part the proceeds yourdomain.com — www is a common subdomain.) Registrars use the @ symbol to indicate the lack of a domain (rather than just leaving it blank).


I did that when I set up my A record. @ and the IP address.
You know that might be the problem...pointing to the IP address instead of www.smugmug.com (http://www.smugmug.com). That could be the reason that I'm seeing the home page...instead of my page...hmmmmm...food for thought, for sure.Some registrars don't allow CNAMEs with @ symbols. They force you to use an A record instead. The basic principle is the same, but instead of pointing to www.smugmug.com (http://www.smugmug.com) it points to our IP address.


Gotcha: Our IP address might change in the future, causing an A record to break. For this reason we suggest trying a CNAME record first.
Our current IP address is 63.81.134.23


Thanks for your help.

RogersDA
Sep-24-2007, 04:55 PM
I have an A record for the domain. I set it when I Cnamed my domain. (about 24 hours ago. The Cname already propagated...so i thought the A record must have also.)

Isn't that why I can access the domain w/o typing www when I enter the site address? Just wondering...new to this sort of stuff...it is my first time.:dunno

Thanks,

For whatever reason my A record was very slow to take. My guess is by tomorrow all should be well (asuming that it was set up correctly on godady).

GJMPhoto
Sep-24-2007, 06:27 PM
I had a problem when I first joined remaining logged in unless I logged in and out of my .smugmug.com ID. So, from that point on (as recommended), I only logged in from the .smugmug.com address.

Now that I've implemented this auto-routing code, I never see my .smugmug.com address.

What are the reprocussions with using this? Does it throw off the cookies?

- Gary.

RogersDA
Sep-26-2007, 08:35 AM
I have an A record for the domain. I set it when I Cnamed my domain. (about 24 hours ago. The Cname already propagated...so i thought the A record must have also.)

Isn't that why I can access the domain w/o typing www when I enter the site address? Just wondering...new to this sort of stuff...it is my first time.:dunno

Thanks,

Looks like its all working now.

GJMPhoto
Sep-30-2007, 06:19 PM
I had a problem when I first joined remaining logged in unless I logged in and out of my .smugmug.com ID. So, from that point on (as recommended), I only logged in from the .smugmug.com address.

Now that I've implemented this auto-routing code, I never see my .smugmug.com address.

What are the reprocussions with using this? Does it throw off the cookies?

- Gary.

TO followup on my own question:
It DOES in fact seem to throw off the login / logout processing...in particular, I find it hard to log out. Again...it was recommended to me when I first joined to always log in and log out on my .smugmug. URL - which fixed the problem - now I never see my .smugmug. URL and the processing is definitely screwed up.

Any ideas?

- Gary.

scwalter
Sep-30-2007, 10:09 PM
TO followup on my own question:
It DOES in fact seem to throw off the login / logout processing...in particular, I find it hard to log out. Again...it was recommended to me when I first joined to always log in and log out on my .smugmug. URL - which fixed the problem - now I never see my .smugmug. URL and the processing is definitely screwed up.

Any ideas?

- Gary.

You don't have to login from your exact smugmug page, you can do it from the homepage as well.

http://www.smugmug.com/

Look near the top for the login button.

-Scott

ivar
Sep-30-2007, 11:22 PM
You don't have to login from your exact smugmug page, you can do it from the homepage as well.

http://www.smugmug.com/

Look near the top for the login button.

-ScottYou can actually log in on any SmugMug page with a login link :thumb

GJMPhoto
Oct-02-2007, 03:21 AM
Ah ha...thanks! Will do...

GJMPhoto
Oct-03-2007, 05:12 PM
Ah ha...thanks! Will do...

I went to www.smugmug.com (http://www.smugmug.com) - according to that page, I was already logged on (the logout button was available).

I went to my page, I was not logged in.

I logged in on my page...

Went to www.smugmug.com (http://www.smugmug.com) - logged out

Returned to my page - I was still logged in.

This 'fix' doesn't seem to be working.