{"id":695,"date":"2024-05-07T11:41:41","date_gmt":"2024-05-07T11:41:41","guid":{"rendered":"https:\/\/kb.shortpixel.com\/docs\/how-to-associate-a-domain-to-my-account\/"},"modified":"2025-08-27T08:47:01","modified_gmt":"2025-08-27T08:47:01","password":"","slug":"how-to-associate-a-domain-to-my-account","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/how-to-associate-a-domain-to-my-account\/","title":{"rendered":"How can I associate a domain to my account?"},"content":{"rendered":"\n<p>You can associate one or more domains with your ShortPixel account in order to start using the credits that you have purchased for <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-adaptive-images\/\" target=\"_blank\" rel=\"noopener\">ShortPixel Adaptive Images<\/a>, <a href=\"https:\/\/wordpress.org\/plugins\/autoptimize\/\" target=\"_blank\" rel=\"noopener\">Autoptimize<\/a>, or one of our <a href=\"https:\/\/shortpixel.com\/api-tools\" target=\"_blank\" rel=\"noopener\">tools<\/a>. <\/p>\n\n\n\n<p>You can <a href=\"https:\/\/shortpixel.com\/free-sign-up\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/shortpixel.com\/free-sign-up\" rel=\"noreferrer noopener\">sign up here<\/a> for free if you don&#8217;t have an account yet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to associate your domain(s)<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/shortpixel.com\/login\" target=\"_blank\" rel=\"noopener\">Log in<\/a> to your ShortPixel account.<\/li>\n\n\n\n<li>From the menu on the left, select <strong><a href=\"https:\/\/shortpixel.com\/associated-domains\" data-type=\"link\" data-id=\"https:\/\/shortpixel.com\/associated-domains\" rel=\"noopener\">Associate Domains<\/a><\/strong>.<\/li>\n\n\n\n<li>Associate your domain(s) by typing it into the box <strong>without the HTTP\/HTTPS protocol<\/strong> <strong>and www<\/strong> (example: shortpixel.com).<\/li>\n\n\n\n<li>All done! Make sure you read the observations below.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<figure class=\"wp-block-video\"><video height=\"758\" style=\"aspect-ratio: 1352 \/ 758;\" width=\"1352\" autoplay loop muted src=\"https:\/\/kb.shortpixel.com\/wp-content\/uploads\/2024\/05\/shortpixel-associate-domain.mp4\"><\/video><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Important observations<\/h2>\n\n\n\n<section class=\"callout-blue\">\n<ul>\n<li>Please note that it may take<strong> up to 5 minutes,<\/strong> after you associated a domain, for the CDN to start serving the images instead of <a href=\"https:\/\/help.shortpixel.com\/article\/148-why-are-my-images-redirected-from-cdn-shortpixel-ai\" target=\"_blank\" rel=\"noopener\">redirecting to origin<\/a>.<\/li>\n<li>If you are using&nbsp;your own CDN, you&#8217;ll have to associate your <strong>custom CNAME<\/strong> as well (<a href=\"https:\/\/help.shortpixel.com\/article\/180-can-i-use-a-different-cdn-with-shortpixel-adaptive-images\" target=\"_blank\" rel=\"noopener\">see this<\/a> for more information). For example, if your domain is <code>example.com<\/code> and you configured SPAI to serve images from <code>cdn.example.com<\/code>, you&#8217;ll have to associate both <code>example.com<\/code> and <code>cdn.example.com<\/code>.<\/li>\n<li>If your assets (images, CSS, JS) are served from a <strong>custom and unique domain<\/strong>, you&#8217;ll have to associate that domain as well. For example, if your domain is <code>example.com<\/code> and some (or all) your assets are served from <code>k9u6i7t4.stackpathcdn.com<\/code>, you&#8217;ll have to associate both <code>example.com<\/code> and <code>k9u6i7t4.stackpathcdn.com<\/code>.<\/li>\n<li>If you have ShortPixel Adaptive Images installed on a <strong>staging<\/strong> website (e.g. <code>staging.your-hosting-provider.com<\/code>) you need to associate <code>staging.your-hosting-provider.com<\/code> to your account as well.<\/li>\n<li><strong>Do not<\/strong> associate any domain that is not unique and used only by you. For example, do not associate <code>instagram.com<\/code>, because if you did so, everyone using SPAI and having assets loaded from <code>instagram.com<\/code> would use your credits!<\/li>\n<\/ul>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>You can associate one or more domains with your ShortPixel account in order to start using the credits that you have purchased for ShortPixel Adaptive Images, Autoptimize, or one of our tools. You can sign up here for free if you don&#8217;t have an account yet. Steps to associate your domain(s) Important observations Please note [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[36,35],"glossaries":[],"doc_tag":[],"class_list":["post-695","docs","type-docs","status-publish","hentry","doc_category-autoptimize","doc_category-shortpixel-adaptive-images"],"blocksy_meta":[],"year_month":"2026-04","word_count":304,"total_views":"4222","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin_mdli53m5","author_url":"https:\/\/kb.shortpixel.com\/author\/admin_mdli53m5\/"},"doc_category_info":[{"term_name":"Autoptimize","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/autoptimize\/"},{"term_name":"ShortPixel Adaptive Images","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/shortpixel-adaptive-images\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=695"}],"version-history":[{"count":5,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/695\/revisions"}],"predecessor-version":[{"id":1860,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/695\/revisions\/1860"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=695"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=695"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=695"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}