aName cName redirect help needed.

erikGrammererikGrammer Registered Users Posts: 14 Big grins
edited February 8, 2008 in SmugMug Pro Sales Support
Hey all,
This is my first post and I've found this forum to be incredibly helpful so thanks in advance! I have my own domain name and have the cname record set up for www.erikgrammer.com which points to my smugmug account. I have another subdomain <downloads> set up on godaddy "downloads" so that I can post different kinds of files for user download at downloads.erikgrammer.com. If I set up an A record for erikgrammer.com such that users will not need to enter "www"<www> will it not than kill access to my files on godaddy through the downloads domain? And, if so, is it possible to write some sort of redirect so that the www is prepended to urls entered with no subdomain? Is prepended a word? These are the questions currently preventing me from taking photographs! Any assistance is greatly appreciated and thanks again to all the helpful posters who got me this far!

(I did a number of different searches in the forums but did not see anything that addressed this specific issue. If there is an easy set of search terms that brings up a post that already answered this question please let me know so I can learn to search better).

Thanks,
-erik</www></downloads>

0
0
Erik Grammer, Photography
Los Angeles, California
www.erikgrammer.com
0
0

Comments

  • BeachBillBeachBill Registered Users Posts: 1,311 Major grins
    edited February 1, 2008
    I have my own domain name and have the cname record set up for www.erikgrammer.com which points to my smugmug account. I have another subdomain <downloads> set up on godaddy "downloads" so that I can post different kinds of files for user download at downloads.erikgrammer.com. If I set up an A record for erikgrammer.com such that users will not need to enter "www"<www> will it not than kill access to my files on godaddy through the downloads domain?

    No. "</www></downloads>downloads.erikgrammer.com" and "erikgrammer.com" are completely separate, unique hostnames.
    <downloads><www>
    </www></downloads>
    <downloads><www>And, if so, is it possible to write some sort of redirect so that the www is prepended to urls entered with no subdomain?</www></downloads>

    The following code, placed in the javascript section of your site customization will automatically redirect http://erikgrammer.com to http://www.erikgrammer.com
    redirectPath();
    
    function redirectPath() {
      re = /(http:\/\/erikgrammer.com)/;
      tmp = window.location.href;
      if (re.test(tmp)) {
        tmp = tmp.replace(re, 'http://www.erikgrammer.com');
        window.location.href = tmp;
      }
    }
    
    Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
  • erikGrammererikGrammer Registered Users Posts: 14 Big grins
    edited February 1, 2008
    Bill,
    Thanks for the response and information. If I understand you correctly, the fact that erikgrammer.com and downloads.erikgrammer.com are unique domain names means that I can create a CNAME for downloads.erikgrammer.com that points to my godaddy ip address and an A record for erikgrammer.com that points to the smugmug ip address. If I set things up that way than am I correct that it would be unnecessary for me to use the javascript redirect?
    Thanks again,
    -erik

    0
    0
    Erik Grammer, Photography
    Los Angeles, California
    www.erikgrammer.com
    0
    0
  • BeachBillBeachBill Registered Users Posts: 1,311 Major grins
    edited February 5, 2008
    Bill,
    Thanks for the response and information. If I understand you correctly, the fact that erikgrammer.com and downloads.erikgrammer.com are unique domain names means that I can create a CNAME for downloads.erikgrammer.com that points to my godaddy ip address and an A record for erikgrammer.com that points to the smugmug ip address. If I set things up that way than am I correct that it would be unnecessary for me to use the javascript redirect?
    Thanks again,
    -erik

    Erik,

    Sorry about the delay in replying. I've been sick the past few days and am behind on my mail. I got to thinking about the javascript I mentioned, I have realized it won't work in your situation as your Smugmug account only recognizes the *.smugmug.com name and your custom hostname defined in your pro control panel, which is www.erikgrammer.com. You will need to do a redirect/forward of erikgrammer.com to www.erikgrammer.com via your godaddy account.

    You are correct in that downloads.erikgrammer.com can point to another address and you should probably use an A record for it unless godaddy tells you to use a CNAME.
    Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
  • erikGrammererikGrammer Registered Users Posts: 14 Big grins
    edited February 5, 2008
    BeachBill wrote:
    Erik,

    Sorry about the delay in replying. I've been sick the past few days and am behind on my mail. I got to thinking about the javascript I mentioned, I have realized it won't work in your situation as your Smugmug account only recognizes the *.smugmug.com name and your custom hostname defined in your pro control panel, which is www.erikgrammer.com. You will need to do a redirect/forward of erikgrammer.com to www.erikgrammer.com via your godaddy account.

    You are correct in that downloads.erikgrammer.com can point to another address and you should probably use an A record for it unless godaddy tells you to use a CNAME.

    Bill,

    Thanks for the response and advice. I'm definitely in the 'knows enough to be dangerous' category....
    Sorry to hear you were not feeling well–back here in Los Angeles everyone is sick too!
    I'll get the records set up and thanks again for the help.

    -erik

    0
    0
    Erik Grammer, Photography
    Los Angeles, California
    www.erikgrammer.com
    0
    0
  • BeachBillBeachBill Registered Users Posts: 1,311 Major grins
    edited February 8, 2008
    Sorry to hear you were not feeling well–back here in Los Angeles everyone is sick too!

    Hah! I was in Los Angeles over the weekend and that's where I got sick!
    Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
Sign In or Register to comment.