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. 301 Redirect without specifying base domain?

    301 Redirect without specifying base domain?

    Technical SEO Issues
    4 2 362
    • 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.
    • yacpro13
      yacpro13 last edited by

      Hi guys,

      about 10 minutes ago, I finally found the underlying problem in magento between 301 redirects and canonical tags - part of the reason why it was hard to identify was because the problem is not constant through all pages.

      Anyway now that I found the problem, I have about 50 301 redirects to implement via .htaccess. Now I know the regular syntax is

      Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html

      But I'm wondering if there's a way that the base domain doesn't have to be specified in the second half of this line. Something like:

      Redirect 301 /oldpage.html /newpage.html

      I'm sure this can be done, somehow.

      Thanks!

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

        Have you tested it with one URL to start?

        yacpro13 1 Reply Last reply Reply Quote 0
        • yacpro13
          yacpro13 @GeorgeAndrews last edited by

          No I haven't tried it because I'm reluctant to try something as important as a 301 redirect without fully understanding it and knowing it will perform as intended.

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

            Just to bring closure to this thread, I never found an answer for this and simply ended up using the common syntax for 301 redirects in htaccess.

            Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • 301 redirects without .htaccess
              NancyVPS
              NancyVPS
              0
              5
              2.0k

            • 301 Redirect domain with penalty
              MarieHaynes
              MarieHaynes
              0
              7
              325

            • Should we 301 redirect our old domain to the new domain
              sitestrux
              sitestrux
              0
              7
              440

            • 301 Redirect for 3 Domains into 1 New Domain
              JaredMumford
              JaredMumford
              0
              3
              517

            • 301 redirect domain to page on another domain
              YNWA
              YNWA
              0
              2
              562

            • 301 Redirect from sub domain to new domain
              Thos003
              Thos003
              0
              3
              1.1k

            • Multiple Domains, Same IP address, redirecting to preferred domain (301) -site is still indexed under wrong domains
              sferrino
              sferrino
              0
              4
              2.9k

            • Accidently did a 301 redirect on root domain and lost domain keyword position
              Blargh123
              Blargh123
              0
              4
              995

            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