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
        • How long will old pages stay in Google's cache index. We have a new site that is two months old but we are seeing old pages even though we used 301 redirects.
          DonnaDuncan
          DonnaDuncan
          0
          3
          81

        • Old site penalised, we moved: Shall we cut loose from the old site. It's curently 301 to new site.
          Carson-Ward
          Carson-Ward
          0
          3
          143

        • 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

        • Is it Wortwhile to have a HTML site map for a Large Site
          RuthBurrReedy
          RuthBurrReedy
          0
          4
          580

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

        • Strange situation - Started over with a new site. WMT showing the links that previously pointed to old site.
          fabioricotta-84038
          fabioricotta-84038
          0
          5
          379

        • To canonicalize an old site to a VERY young one
          Hannah_Smith
          Hannah_Smith
          0
          4
          403

        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