SEO

www vs non-www and Trailing Slashes: Keeping URLs Consistent

Why your website should use one consistent version of each URL, and how to redirect the others.

AMAMJAM Solutions teamRewari, Haryana 11 Jan 20263 min read
Person checking a search performance report on a laptop
On this page

    The same page can often be reached at several addresses: with or without www, with or without a trailing slash, http or https. Search engines may treat them as separate pages.

    Versions that should be one

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

    Choose one

    • HTTPS always.
    • www or non-www: either works; pick one.
    • Trailing slash or not: pick one pattern.

    Enforce it

    • 301 redirect other versions to the chosen one; generate rules with our redirect generator.
    • Use the chosen version in canonical tags, sitemaps and internal links.
    • Check variations with our URL parser.

    Check external profiles

    Use the same version in Google Business Profile, social links and ads.

    Read canonical tags.

    Want the full picture? This article is part of SEO: the complete guide, our in-depth guide with everything in one place.

    AM
    Written by the AMJAM Solutions team

    Our specialists handle SEO for businesses across India from our office in Rewari. We update our articles as platforms change.

    Free strategy call

    Find out where your next customers will come from

    Tell us a little about your business. We'll set up a 15-minute call and come prepared with first ideas.

    • No obligation and no sales script
    • Speak with a strategist, not a call centre
    • Leave with at least one thing you can act on

    We use your details only to arrange this call. See our privacy policy.

    Get a free 15‑minute strategy call

    Leave your details and a strategist will call you, usually the same working day.

    We use your details only to reply. See our privacy policy.