Welcome to Centmin Mod Community
Register Now

Domains Should I switch from a .us domain to a .com domain?

Discussion in 'Domains, DNS, Email & SSL Certificates' started by CarpCharacin, Nov 25, 2016.

  1. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:56 AM
    1.15.x
    MariaDB 10.1
    I am posting in the off topic section since it isn't really centmin mod related. I currently have a .us domain and I am thinking about switching it to utahfishkeepers.com of ozzy will transfer it to me. I have the .us domain in my dads name because you have to be 18 to register a domain. Should I switch or not?

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    7:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    .com will always have the more perceived value :)
     
  3. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:56 AM
    1.15.x
    MariaDB 10.1
    ozzy might transfer it to me. Will the XF urls still redirect if I switch to the .com? I am not sure if I want to switch or not.
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    7:56 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    Changing Site's Domain Name



    Like http to https redirects you do one for switching domains. Example where domain.us is old domain and domain.com is new domain for site. You do a domain.us to domain.com redirect as outlined at How to Create NGINX Rewrite Rules | NGINX
    1. setup a new nginx vhost for new domain.com and DNS A record point to same server IP as domain.us
    2. grab your domain.us.conf and/or domain.us.ssl.conf nginx vhost and use their configs to replace contents of domain.com.conf and domain.com.ssl.conf vhost files replacing all instances of domain.us with domain.com in domain.com.conf and domain.com.ssl.conf vhost files
    3. then switch /home/nginx/domains/domain.us name with /home/nginx/domains/domain.com so rename /home/nginx/domains/domain.us to /home/nginx/domains/domain.com and rename /home/nginx/domains/domain.com to /home/nginx/domains/domain.us
    4. at this stage accessing domain.us and domain.com should go to the same site/forums and work
    5. then in your domain.us.conf and/or domain.us.ssl.conf nginx vhost server{} contexts do a return 302 temp redirect to domain.com and check
      Code (Text):
       server {
         server_name domain.us www.domain.us;
          return 302 $scheme://domain.com$request_uri;
       }
    6. So your domain.com.conf and domain.com.ssl.conf vhost files contents will look exactly like your previous working domain.us site's vhost files prior to move just with domain.com instead of domain.us referenced throughout and your newly updated domain.us.conf and/or domain.us.ssl.conf nginx vhost for old site now contain server{} context based return 302/301 redirects to domain.com
    7. Update your Google Analytics, Google/Bing Webmaster Tools accounts for site domain if applicable etc. Give it a few weeks to see and if all okay, change the return 302 to return 301 for permanent redirect
     
  5. RB1

    RB1 Active Member

    292
    75
    28
    Nov 11, 2016
    California
    Ratings:
    +122
    Local Time:
    2:56 AM
    Nginx 1.21.x
    MariaDB 10.1.x
    Don't post your unregistered domain publicly...someone will grab it before you can purchase it yourself :)
     
  6. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:56 AM
    1.15.x
    MariaDB 10.1
    Ozzy currently owns the .com, .net and .org. I am probably going to stay with the .us as the main domain for now.
     
  7. RB1

    RB1 Active Member

    292
    75
    28
    Nov 11, 2016
    California
    Ratings:
    +122
    Local Time:
    2:56 AM
    Nginx 1.21.x
    MariaDB 10.1.x
    Ahh OK :)