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. Technical SEO Issues
    4. Correct 301 of domain inclusive "/"

    Correct 301 of domain inclusive "/"

    Technical SEO Issues
    4 2 1.1k
    • 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.
    • petrakraft
      petrakraft last edited by

      Do I have to redirect "/" in the domain by default?

      My root domain is e.g. petra.at
      --> I redirect via 301 to www.petra.at

      Do I have to do that with petra.at/ and www.petra.at/, too?

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

        Yes I believe so. When you do a .htaccess redirect with the code pasted below, it should do both canonicalisations

        RewriteEngine on 
        RewriteCond %{HTTP_HOST} ^petra.at [NC] 
        RewriteRule ^(.*)$ http://www.petra.at/$1 [L,R=301]

        petrakraft 1 Reply Last reply Reply Quote 3
        • petrakraft
          petrakraft @ThomasHgenhaven last edited by

          Thank you for the answer

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

            You are welcome 🙂

            Not going to lie - this q&a section is really fun to play around with

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Duplicate pages with "/" and without "/"
              Nigel_Carr
              Nigel_Carr
              0
              3
              127

            • How to de-index a page with a search string with the structure domain.com/?"spam"
              CopyChrisSEO
              CopyChrisSEO
              1
              4
              113

            • Many "spin-off" sites - 301 or 401/410?
              AceRentalCars
              AceRentalCars
              0
              3
              102

            • Http:// to https:// 301 or 302 redirect
              Kingof5
              Kingof5
              1
              7
              284

            • 301 redirect after penalty to domain which currently 301 to the penalised domain
              evolvingSEO
              evolvingSEO
              0
              4
              305

            • Correct linking to the /index of a site and subfolders: what's the best practice? link to: domain.com/ or domain.com/index.html ?
              CleverPhD
              CleverPhD
              0
              4
              245

            • 301 Redirect / cross-domain canonical to a URL w/ Ampersand
              Gatelist
              Gatelist
              0
              3
              756

            • Getting multiple errors for domain.com/xxxx/xxxx/feed/feed/feed/feed...
              Brandtailers
              Brandtailers
              0
              5
              1.4k

            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