Turn Your Domain Into An OpenID

If you’re using OpenID, there’s an easy way to use your domain as your OpenID without running any extra scripts/software. With a couple of lines of code you can set your personal domain to redirect to your OpenID (known as OpenID delegation). Then instead of logging in with you.myopenid.com you can use yourdomain.com. According to MyOpenID.com add the following in your <head> tags (after changing yourusername).

<link rel="openid.server" href="http://www.myopenid.com/server" />
<link rel="openid.delegate" href="http://yourusername.myopenid.com/" />
<link rel="openid2.local_id" href="http://yourusername.myopenid.com" />
<link rel="openid2.provider" href="http://www.myopenid.com/server" />
<meta http-equiv="X-XRDS-Location" content="http://www.myopenid.com/xrds?username=yourusername.myopenid.com" />

If you’re using another provider check their docs for the proper server and XRDS URL’s (which isn’t used by all providers). Here are some popular server URLs:

Another advantage of OpenID delegation is that if your OpenID provider goes out of business, you can just change the tags above and your domain will point to the new OpenID.