Losing clicks to competitors? Find out exactly why, and what to fix first.

Show me why
Skip to content

Technical SEO

How to Redirect HTTP to HTTPS and Non-WWW to WWW Correctly

Add saadrazaseo.com as a preferred source on Google

Takes about a minute. You hear back from me personally.

Pick one preferred version of your site, such as https with www, and 301 redirect every other version to it in a single step. Without that, your site can exist at four addresses, splitting signals and confusing search engines. A correct setup means any variant a visitor types lands on one clean URL.

The four versions to control

  • http://example.com
  • http://www.example.com
  • https://example.com
  • https://www.example.com

Choose one as the preferred version. Which you pick matters less than being consistent.

Redirect in one hop

Each other version should send visitors straight to the preferred address with one 301. Chains such as http to https and then non-www to www add delay and risk. Learn more in redirect chains and loops.

Not sure if this is hurting your site?

Get the fixes that matter most, in priority order.

Find my blockers

Server rules

The rules usually live in your server configuration or an htaccess file. The htaccess redirect generator writes the code for common cases, so you do not need to hand-edit it from scratch.

Test every version

Enter each of the four addresses into the redirect and status code checker. Each should show a single 301 to the preferred address and a final 200.

Support it with other signals

Frequently asked questions

Is www or non-www better?

Neither is better for rankings. Choose one and keep it.

Do I need to tell Google?

Correct redirects and canonicals are the main signals. Also submit the right version in Search Console.

Next steps

If your site answers on several addresses, contact me here for a technical fix.

More in this series (redirect questions): start with Free Redirect and Status Code Checker, then explore:

Rather have an expert do this for you?

Tell me about your website and goals, and I will reply with a free first review.

Your details are only used to reply to your request. No spam.

Grow my trafficCall