Question for Andy about custom hostname
Mr.Skull
Registered Users Posts: 32 Big grins
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
Thanks,
Joel
Joel Fletcher
http://www.joelfletcher.com
http://www.joelfletcher.com
0
Comments
Try our Advanced FAQ, #62
www.ivarborst.nl & smugmug
http://www.joelfletcher.com
Portfolio • Workshops • Facebook • Twitter
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 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');
window.location.href = tmp;
}
}
redirectPath();
Educate yourself like you'll live forever and live like you'll die tomorrow.
Ed
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
www.banksy.me.uk - main website
http://galleries.banksy.me.uk - smugmug site
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.
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.
Educate yourself like you'll live forever and live like you'll die tomorrow.
Ed
You must have your domain CNAMEd to SmugMug first, for this to actually work
More, here
http://www.smugmug.com/help/professional-accounts
Portfolio • Workshops • Facebook • Twitter
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,
Educate yourself like you'll live forever and live like you'll die tomorrow.
Ed
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,
Educate yourself like you'll live forever and live like you'll die tomorrow.
Ed
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.
GreyLeaf PhotoGraphy
www.ivarborst.nl & smugmug
My domain name is 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.
Educate yourself like you'll live forever and live like you'll die tomorrow.
Ed
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
My Website index | My Blog
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.
Thanks,
Educate yourself like you'll live forever and live like you'll die tomorrow.
Ed
Thanks for your help.
Educate yourself like you'll live forever and live like you'll die tomorrow.
Ed
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).
GreyLeaf PhotoGraphy
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.
Looks like its all working now.
GreyLeaf PhotoGraphy
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
scwalter.smugmug.com
www.ivarborst.nl & smugmug
Ah ha...thanks! Will do...
I went to 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 - logged out
Returned to my page - I was still logged in.
This 'fix' doesn't seem to be working.