← Back to blog

Canonical Domain Redirect: One Address for Your Storage Site

December 5, 2026
Canonical Domain Redirect: One Address for Your Storage Site

Your storage website probably answers at four addresses: http and https, each with and without www. If all four load the same pages, Google has to guess which one is yours, and your reviews, links and Google Business Profile traffic can end up split across duplicates. A canonical domain redirect fixes that. You pick one version, and the server sends every request for the other versions to it with a permanent 301 redirect, keeping the page path intact. It takes a few lines of server configuration, and it is one of the first things we check in a technical audit for a storage operator.

Corvanesystems
Make Your Storage Site Easier to Find
Corvane Systems helps storage operators strengthen technical SEO and search visibility across Google and AI platforms.
Visit

TL;DR

  • Pick one hostname (www or non-www), serve it over HTTPS, and 301-redirect the three other variants to it in a single hop.
  • Which version you choose has minimal SEO impact. Consistency is what counts, so keep the version Google already indexes.
  • A redirect moves visitors and search engines. A rel="canonical" tag only suggests a preferred URL, so use both and make sure they agree.
  • Check the SSL certificate covers both hostnames before you turn the redirect on, or the www version will throw a security warning.
  • Test all four starting addresses plus a deep URL, then confirm the result in Search Console.

Table of Contents

Why a storage site needs one address

Without a redirect, search engines can treat www.yourfacility.com and yourfacility.com as two separate sites. WPBeginner's guide describes the consequences: backlink authority gets split, crawl budget is wasted on duplicate pages, and Google may index the wrong version.

Picture a three-location operator. A local newspaper links to the www version of the unit-sizes page, a moving-company partner links to the bare domain, and your Google Business Profile points at https with no www. Each link strengthens a different copy of the same page. The rankings that should be stacking up on one URL are divided three ways, and the page that shows up for "storage near me" is weaker than it needs to be.

The damage doesn't come from the redirect itself. Google's site-move documentation is clear that a correctly implemented permanent redirect is the normal way to consolidate URLs. The problems come from skipping it, pointing it at the wrong page, leaving a long chain of hops, or leaving a temporary status code in place. If your traffic has dipped and you can't say why, our piece on why storage websites lose traffic lists the usual suspects, and an inconsistent hostname is one of them.

Redirect or canonical tag: what each one does

A canonical domain redirect is a server response. When someone requests the non-canonical address, the server answers with a 301 status and a Location header pointing at the canonical one. MDN's URI guide gives the example of a request for www.example.org/whaddup returning a 301 to example.org/whaddup. The visitor never sees the old address, and the old address stops serving content.

A canonical tag is a line of HTML in the page head. It tells search engines which URL you prefer while both addresses keep serving the same page. It moves nobody.

Google ranks these as signals. In its canonicalization guide, permanent redirects and rel="canonical" annotations are both strong signals, and listing a URL in a sitemap is a weak one. The signals stack, so the practical answer is to use all three and make sure they agree.

How redirects, canonical tags, and sitemaps differ

The deciding question is whether the duplicate address still has a job. The unused www variant and the http version don't, so they get a redirect. A filtered or sorted unit list, a campaign link or a print version does have a job, so those get a canonical tag. One warning applies to both: a canonical tag that points at a URL which itself redirects, or a redirect and canonical that disagree, sends Google mixed signals.

Choosing www or non-www

Pick whichever you like, but pick once. Google's John Mueller has called www a brand preference with minimal SEO implications, according to Search Engine Journal, and the same piece says Google generally sees subdomains and subdirectories the same way. Nobody ranks higher for dropping the www.

Our verdict for most storage sites is this: keep whatever Google is already indexing. If your site has been live for years, switching changes every URL on it, and rankings can wobble while Google recrawls. Google says as much in its site-move documentation: small-to-medium sites typically take a few weeks for most pages to move, and rankings can fluctuate during that time. A brand-new site can go either way, and the bare domain is the simpler default for most small business sites.

There's one technical reason to prefer www. It can be a CNAME record pointing at a CDN or load balancer, while the bare (root or apex) domain traditionally needs an A record. If your host or CDN insists on a CNAME, that settles it. Cookies are another small difference: those set on the root domain go to every subdomain, while www-scoped cookies stay contained.

A second choice is the protocol. Everything should land on HTTPS. The canonical address is the full combination, for example https://www.yourfacility.com, and every other combination should end up there.

Before you write a rule: DNS and certificate

The most common real failure isn't the redirect rule. It's a certificate that only covers one hostname. If the certificate covers yourfacility.com but not www.yourfacility.com, a visitor typing the www address gets a security warning before the server can send the redirect. PulseKeeper's documentation gives the order: DNS record first, then a certificate covering both names, then the redirect.

In practice:

  1. Make sure the non-canonical hostname has a DNS record pointing at the same server, either a CNAME (www pointing at the bare domain) or an A record with the same IP.
  2. Issue or reissue the SSL certificate to include both names. With Certbot on Nginx that looks like sudo certbot certonly --nginx -d example.com -d www.example.com. On shared hosting, the host's SSL tool usually has a checkbox for the www name.
  3. Only then add the redirect.

If your storage site sits behind Cloudflare or another proxy, note that now. The SSL mode there interacts with your server's HTTPS redirect, and the wrong combination causes loops. More on that below.

Setting up the redirect

The goal in every case is the same: any request to a non-canonical address gets one 301 straight to the equivalent URL on the canonical address, with the path and query string carried across. A rule that sends every old URL to the homepage throws away your unit-size, city and location pages, which are the pages that earn bookings.

Apache and shared cPanel hosting

If you control the server configuration, Apache's own documentation recommends a dedicated virtual host for the unwanted name with a Redirect directive, such as a VirtualHost on port 80 with the unwanted ServerName and Redirect "/" "http://www.example.com/". That redirects every request and preserves the path. Apache treats mod_rewrite as the last resort for when you're limited to .htaccess.

Most storage sites are on shared hosting, where .htaccess is all you have. The pattern, with the non-canonical host matched and the path carried by $1, looks like this:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]

Here $1 carries the path, NC makes the match case-insensitive, R=301 makes it permanent and L stops further rules from running, as Bluehost's guide explains. To avoid a two-hop chain (http to https, then bare to www), Ninja Softs shows how to combine the HTTPS-off and wrong-host conditions into one rule, so http://example.com lands on https://www.example.com in a single hop. On WordPress, put these rules at the top of the file, above the # BEGIN WordPress block, and back up .htaccess first.

If you'd rather not touch code, cPanel has a no-code route: Domains, then Redirects, choose Permanent (301), select the domain and enter the destination, with or without www.

Nginx

Nginx wants a separate server block for the hostname you're retiring, listening on both port 80 and 443, with a single line doing the work: return 301 https://example.com$request_uri;. Rackspace's documentation notes that $request_uri preserves the full path and query string. Run sudo nginx -t to validate the syntax before you reload with sudo systemctl reload nginx. Don't configure the opposite direction anywhere else, or you've built a loop.

WordPress

Many storage sites run on WordPress. Set both the WordPress Address and Site Address under Settings, then General, to your canonical URL. If those fields are greyed out, define WP_HOME and WP_SITEURL in wp-config.php. WordPress has its own redirect_canonical function that issues 301s based on the site URL, but it only covers URLs WordPress itself handles, not static files such as images and PDFs. Keep the server-level redirect in place as well. After a change of address, run a database search-and-replace so internal links and image URLs use the new form instead of relying on the redirect.

What to do about 301 versus 302

Use a 301 (or 308) for this job. Google's redirect documentation says permanent redirects are a signal that the target should be canonical and the new URL shows in search results, while temporary redirects (302, 303, 307) keep showing the source page. A 302 left in place by a plugin or a hurried setup is a classic reason the wrong version keeps appearing in results. The 308 behaves like a 301 but keeps the request method unchanged, which only matters for form posts, so for a storage site's pages a 301 is the normal choice.

The mistakes that cost storage operators rankings

Most of these turn up in site audits, and none is hard to fix once spotted.

Loops come first. A server forcing www while WordPress is set to the non-www address will bounce a visitor back and forth until the browser gives up. The same happens when Cloudflare's Flexible SSL mode meets a server rule that forces HTTPS. Behind a proxy, the server rule should check the X-Forwarded-Proto header rather than the HTTPS variable. Splitting canonical decisions across Nginx, a CDN, a hosting panel and the application also makes the final Location header hard to predict, so decide where the redirect lives and keep it there.

Chains come next. A request that goes http, then https, then www takes three hops where one would do. Googlebot can follow up to 10 hops, but Google's site-move guidance says to send redirects straight to the final destination, ideally no more than three hops and fewer than five. Each extra hop also slows the page for a renter on a phone in a parking lot.

Then there's the homepage dump, where every old URL lands on the front page instead of its equivalent. Add the single-hostname certificate problem from earlier, and a 302 where a 301 was intended.

Last, forgetting what else names your address. Your XML sitemap should list only canonical-host URLs (if your site is large, our guide to avoiding the 50,000 URL cutoff for storage sitemaps covers the limits). Your internal links, your Google Business Profile website field and your listings should all use the canonical form too. A redirect catches the stragglers, but links that point straight at the right address are cleaner.

If you run several facilities with a page per location, duplicate content is a separate headache from hostname duplication. We cover it in fixing duplicate content across locations.

The mistakes that cost storage operators rankings

Testing the redirect and confirming Google agrees

Browsers cache 301s, so judge by status codes and exact Location values, not by what the address bar shows. In a terminal, curl -IL shows each hop. Test these starting points:

  1. http://example.com/
  2. http://www.example.com/
  3. https://example.com/
  4. https://www.example.com/
  5. A deep URL with a query string, such as a unit-size page with a tracking parameter.

On the three non-canonical starts, you want exactly one 301 with a Location header pointing at the final HTTPS URL on your canonical host, then a 200 OK. The canonical address itself should return 200 with no redirect at all. Also check that an unknown Host header doesn't produce a surprise.

Then move to Search Console. Create a Domain property so all variants are reported together, run URL Inspection on your canonical pages, and watch the Page indexing report: non-preferred URLs should show up as "Page with redirect". Submit a sitemap containing only canonical-host URLs. Google's site-move documentation says the Change of Address tool is not needed for switching between www and non-www on the same domain, so don't go looking for it.

Keep the redirects in place for at least a year, and in practice leave them on permanently. Expect a few weeks before most pages have moved in Google's index, and don't panic over small ranking movement during that window.

This is the part of the job where our technical SEO work does the heavy lifting for storage operators: it includes full site audits, indexing checks and ongoing health monitoring, so a redirect that breaks after a hosting change or a plugin update is spotted rather than discovered months later in your occupancy numbers.

Our view on hostname canonicalization

We treat the canonical domain as the foundation under everything else we do for a storage site. Local rankings, Google Business Profile traffic and visibility in AI answers all depend on one clear address for each page. If the same unit-size page lives at four URLs, you've made it harder for Google and for AI tools to know which one to recommend.

That's why our system pairs technical and on-page SEO with local search positioning and AI visibility audits. A facility operator shouldn't need to read Apache documentation to get this right. We handle the audit and the ongoing monitoring as part of one flat monthly rate, with no contracts, so a redirect problem is just one more item on the list instead of a project that needs a separate quote.

Our advice stays simple: choose one address, redirect everything to it in one hop, and keep your content, sitemap and listings pointing at the same version.

Mike

Getting this handled for your facilities

The full Corvane system costs $299 per month, plus a one-time onboarding fee of $50, with no contracts and no minimums. It covers technical and on-page SEO, including the site audit where redirect and canonical problems get found, along with local search work and monthly reporting. If you want to know where your site stands first, the Free AI Visibility Audit scores how your facility appears across ChatGPT, Claude, Perplexity, Google AI and llms.txt. If the site itself needs a stronger base, we also build custom websites for storage facilities, and our guide to a storage website redesign shows how to protect rankings through the move.

Corvanesystems

If you want the technical groundwork explained alongside the rest of the site's health, start with our piece on server-rendered facts and technical SEO for storage.

FAQ

Is www or non-www better for SEO?

Neither wins on rankings. Google's Mueller has described the choice as a brand preference with minimal SEO implications. Keep the version Google already indexes if your site is established, and make every other variant redirect to it.

Do I need both a redirect and a canonical tag?

Yes, because they work together. The 301 sends visitors and crawlers to the canonical address, and a self-referencing rel="canonical" tag on each page confirms it. Make sure the tag never points at a URL that itself redirects, since that sends mixed signals.

Will the redirect hurt my rankings?

A correctly set permanent redirect isn't a ranking penalty. Google's documentation says permanent redirects don't cause PageRank loss. Damage comes from missing redirects, long chains, redirects to the wrong page or a 302 left in place. Expect some temporary movement for a few weeks while Google recrawls.

Do I need Google's Change of Address tool?

No. Google says the tool is only needed when moving between domains or subdomains. Switching between www and non-www on the same domain, or from http to https, doesn't need it.

How long should the redirect stay in place?

Google recommends keeping redirects for at least one year. For hostname redirects there's no reason to remove them, since old links, bookmarks and listings will keep sending traffic to the other version indefinitely.

Sources