The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. How do I canonicalize an old HTML static site?

    How do I canonicalize an old HTML static site?

    Intermediate & Advanced SEO
    2 2 45
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mbodine
      mbodine last edited by

      Hey All, I have an old static HTML site, and the crawl errors are showing "http://www.website.com" and http://website.com" as the two separate pages because there is no canonicalization. Can I fix that with a rel="canonical" tag? There is just a folder of HTML files to add the tag to, so if the www. version is the true version, can I just add to all the pages? Or is there a better way to do this??

      1 Reply Last reply Reply Quote 0
      • effectdigital
        effectdigital last edited by

        Even if it's a static site you should still be able to utilise a .htaccess file, NginX redirects or web.config depending on your server configuration - to redirect certain URLs to other addresses. Just because a site is static, that doesn't mean that .htaccess (Apache) or web.config (IIS) will not intercept and rewrite

        https://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess

        Just stick a '.htaccess' (extension only, no filename) in your site's root and edit to suit. Most apache sites will adhere to a .htaccess file, placed in the root. Be sure to use the 301 (permanent) redirect status

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Transferring Domain and redirecting old site to new site and Having Issues - Please help
          kwoolf
          kwoolf
          0
          4
          330

        • Moving to a new site while keeping old site live
          kdaniels
          kdaniels
          0
          4
          110

        • New site causes massive drop off in ranking, old site restored how long to recover?
          David-Kley
          David-Kley
          0
          7
          156

        • Why does old "Free" site ranks better than new "Optimized" site?
          WhatUpHud
          WhatUpHud
          0
          5
          100

        • Site migration from non canonicalized site
          McTaggart
          McTaggart
          0
          3
          62

        • Lost 86% of traffic after moving old static site to WordPress
          JakubH
          JakubH
          0
          4
          799

        • Merging Sites: Will redirecting the old homepage to an internal page on the new site cause issues?
          AymanH
          AymanH
          0
          5
          211

        • Moving from a static HTML CSS site with .html files to a Wordpress Site while keeping link structure
          TomRayner
          TomRayner
          0
          4
          1.3k

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy