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 for old domain to new domain - Joomla plugin or cpanel?

    301 for old domain to new domain - Joomla plugin or cpanel?

    Technical SEO Issues
    5 3 1.9k
    • 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.
    • designquotes
      designquotes last edited by

      A client changed domains and both are being indexed.

      There are thousands of content pages.

      I can install a 301 redirect Joomla plugin and configure it so that each page redirects to the new domain. I have a feeling I will need to manual set every page.

      OR

      I can create a domain level redirect setting in cpanel using wildcards. I think this will automatically pass every old URL to the new URL.

      Which is the better approach? The cpanel option sounds like less work.

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

        Hi Daniel,

        Love Joomla! We use it all the time. With that said you would have to manually set each individual url using ReDJ. If all of the urls are the same on the new domain as they are on the old domain you could use the Cpanel and redirect using wildcard.

        Assuming that you're server is using Apache you could also create a .htaccess and add the following lines to your .htaccess file in the:

        RewriteEngine On
        RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
        RewriteCond %{HTTP_HOST} ^www.olddomain.com$
        RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
        

        Test this of course, but it should do the trick.

        Kevin

        designquotes 1 Reply Last reply Reply Quote 1
        • designquotes
          designquotes @Webfor last edited by

          Sounds like a plan. I'll try the .htaccess idea.

          The other issue is that both www and non www are indexable. So in addition to redirecting the old domain to the new domain (yes the URLs and content is identical)

          1. The old domain www and non www need to be redirected to new domain with www.

          2. The new domain non www needs to be redirected to new domain with www.

          The configuration you have provided looks like it will redirect the old domain with and without www to the new domain with www. What should I add to redirect new non www urls to with www urls?

          I hope I described that accurately enough. Let me know if I need to explain myself better. I've included an example:

          original.com should redirect to www.new.org

          www.original.com should redirect to www.new.org

          new.org should redirect to www.new.org

          The above examples should work for all sub folders.

          Webfor 1 Reply Last reply Reply Quote 0
          • Webfor
            Webfor @designquotes last edited by

            Yup, the code I gave should work for #1

            Here is what you need for #2

            RewriteEngine on

            RewriteCond %{HTTP_HOST} ^mysite.com [NC]

            RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]

            Cheers!

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

              .htaccess is always the better approach when doing redirects, its easier and gives you a bit more flexibility. Good answer Kevin.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • 301 Domain Redirect from old domain with HTTPS
                waqid
                waqid
                0
                2
                65

              • Old domain to new domain
                AL123al
                AL123al
                0
                3
                121

              • How to redirect old domain to new domain.
                OlegKorneitchouk
                OlegKorneitchouk
                0
                4
                82

              • Redirecting old domain to new domain with wordpress
                bobrock4
                bobrock4
                0
                4
                277

              • Old domain vs. New keyword domain - Thoughts?
                EGOL
                EGOL
                0
                2
                279

              • New Website, New URL, New Content - What do we do with the old site? Are 301's the only option?
                Valarlf
                Valarlf
                0
                3
                342

              • New project old domain should I 301 redirect while new sites built
                MikeDelaCruz77
                MikeDelaCruz77
                0
                3
                346

              • Any way around buying hosting for an old domain to 301 redirect to a new domain?
                MarkFasel51
                MarkFasel51
                0
                17
                1.7k

              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