Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Nov 03, 2015 1:09 pm 
Offline
Newbie

Joined: Tue Nov 03, 2015 1:07 pm
Posts: 2
I had this working when I used Namecheap's DNS, but I can't seem to get it to work for Linode's. To the point, I want linkedin.mydomainname.com redirect directly to my LinkedIn profile, which is a URL.

I thought you did this with the CNAME?


Top
   
PostPosted: Tue Nov 03, 2015 7:05 pm 
Online
Linode Staff

Joined: Wed Jul 01, 2015 10:33 am
Posts: 59
Correct, you should be able to do this with a CNAME. What is the error you're getting when you're trying to do it on Linode?


Top
   
PostPosted: Tue Nov 03, 2015 7:17 pm 
Offline
Newbie

Joined: Tue Nov 03, 2015 1:07 pm
Posts: 2
@mkorsak

The error I'm getting is: • You have entered an invalid target. It must be a valid hostname.

In the fields for the CNAME page I have

Hostname: linkedin

Alias: http://www.linkedin.com/pub/******** (where the ** are the remainder of the URL)

TTL: Default

edit: I've also tried linkedin.url.com in the Hostname field as well. I guess I just don't understand how to make that a valid hostname?


Top
   
PostPosted: Tue Nov 03, 2015 7:43 pm 
Offline
Senior Newbie

Joined: Fri Sep 16, 2011 2:26 am
Posts: 5
Location: Minnesota, USA
Twitter: TonyYarusso
I have to disagree with mkorsak here. The value of a CNAME record has to be a hostname (eg. www.linkedin.com), not a URL (as you've shown). For what you want you'd have to have DNS point to your server and use URL rewriting functions in your web server.


Top
   
PostPosted: Wed Nov 04, 2015 1:07 pm 
Offline
Linode Staff

Joined: Mon Sep 29, 2014 4:47 pm
Posts: 90
Twitter: FelicianoTech
tonyyarusso is correct.

Point the subdomain to your Linode. Have your webserver have a rewrite rule for linkedin.mydomainname.com (301 redirect) that points to your LinkedIn URL instead.

A CNAME is an alias not a redirect.


Top
   
PostPosted: Thu Nov 05, 2015 10:35 am 
Online
Linode Staff

Joined: Wed Jul 01, 2015 10:33 am
Posts: 59
Ah that's right, my mistake. It's been a while since I've set one up, and now that I think about it, I've always used it with just normal hostnames. Redirect rules or a page that redirects on your server will do just fine.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group