undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. SEO Tactics
  3. Technical SEO
  4. WPEngine Causing Redirect Chain

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

WPEngine Causing Redirect Chain

Technical SEO
5
9
3.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • AaronHenry
    AaronHenry Subscriber last edited by Jun 14, 2017, 4:30 PM

    Hi guys,

    Had a quick question that I wanted to verify here. After reviewing a Moz report we received some redirect chain error on all of our sites hosted with WPEngine. We noticed that the redirect chain appears to be coming from how the domains are configured in their control panel.

    Essentially, there is a redirect:

    • from staging/temp -> to live
    • from non-www -> to www
    • SSL redirect from http -> https

    The issue here is that the non-www is redirecting to www and then redirected again to https://www

    According to support the only way to get rid of this error is to drop the www version of the domain and to host everything under https://domain.com. To me it seems very odd that you cannot just go from http://non-www to https://www in just 1 301 redirect.

    Has anyone else experienced this or am I just not looking at the situation correctly?

    1 Reply Last reply Reply Quote 0
    • waqid
      waqid @AaronHenry last edited by Aug 10, 2022, 4:01 PM

      @AaronHenry This works. i had numerous redirect hops on wpengine. i followed these industructions and my issue went away. Make sure you clear cache when you do this (on the site and wpengine cache)... also make sure you dont have any redirects on the domain or cloud flare dns file level. Remove any redriects of the primary and set www. as the primary.

      1 Reply Last reply Reply Quote 0
      • Matt312
        Matt312 Subscriber @JaredWPE last edited by Mar 3, 2020, 4:05 PM Mar 3, 2020, 4:05 PM

        Hi Jared,

        In the WPE redirect rule editor, it doesn't provide an option for the non-www domain. Only "All domains" and "www.mywwwdomain.com". What do you suggest doing here to eliminate the redirect chain?

        1 Reply Last reply Reply Quote 0
        • JaredWPE
          JaredWPE @DonnaDuncan last edited by Oct 28, 2017, 6:02 PM Oct 28, 2017, 6:02 PM

          Hi Donna,

          Thanks for the followup!

          This method would work for both www and non-www to get it over to https://. We handle redirects on the Nginx layer, so by adding in a Redirect Rule it overwrites any default platform redirect rules in the User Portal and ensures your preferred setup is handled first.

          If you run into any trouble getting it configured, please reach out to us and we'll be glad to ensure it gets set up properly. Should anyone tell you it's not possible, request that they reach out to me and I'll be sure to instruct them on the method to get it squared away.

          Cheers,
          Jared Arnold

          1 Reply Last reply Reply Quote 0
          • JaredWPE
            JaredWPE @AaronHenry last edited by Oct 28, 2017, 5:57 PM Oct 28, 2017, 5:57 PM

            Hi Aaron,

            You're very welcome and I'm glad that you've been overall enjoying the platform!

            It's very possible that they didn't quite grasp the request, though it is a bit of an SEO quirk to configure. I'll be following up with some of our team to help ensure our internal documentation's up to date so that should this be asked in the future, we can provide a more consistent experience for you.

            Thanks!
            Jared Arnold

            1 Reply Last reply Reply Quote 0
            • DonnaDuncan
              DonnaDuncan @JaredWPE last edited by Oct 27, 2017, 4:14 PM Oct 27, 2017, 4:14 PM

              Same question but for the www version of the site. Can it route directly to HTTPS without a redirect? Do I just have to delete the existing non-www to www redirect and follow your logic above? It will take care of both www and non-www redirecting to HTTPS?

              I have also asked the help desk several times for a solution, although not recently. I was told it wasn't possible.

              JaredWPE 1 Reply Last reply Oct 28, 2017, 6:02 PM Reply Quote 0
              • AaronHenry
                AaronHenry Subscriber @JaredWPE last edited by Oct 27, 2017, 3:05 PM Oct 27, 2017, 3:05 PM

                Thanks for this information! All of the support agents I spoke with told me that it was not possible. They were all extremely professional, but perhaps they didn't understand what I was asking. I'm glad to hear there is a way to make it happen. WPE is a great platform for us.

                JaredWPE 1 Reply Last reply Oct 28, 2017, 5:57 PM Reply Quote 0
                • JaredWPE
                  JaredWPE last edited by Oct 26, 2017, 9:06 PM Oct 26, 2017, 8:55 PM

                  Hey Aaron!

                  Jared from WP Engine here.

                  I just wanted to reach out and provide a bit of clarification on the redirect chain here. On our platform, it is possible to have non-www go to https://www directly.

                  To do so, it requires adding each domain individually within the User Portal under 'Domains'. (not combining them under redirects) Once done, you then create a Redirect Rule within the 'Redirect Rules' section with the following parameters:

                  Name: (this can be anything)
                  Domain: (your non-www domain)
                  Source: ^/(.*)
                  Destination: https://www.yourwwwdomain.com/$1

                  Once configured and the cache purged, a request to the non-www version of your address will skip the http://www redirect and go directly to the secure https://www version.

                  If you run into any trouble getting it set up, please reach out to our team and we will be glad to help configure it for you.

                  Thanks,
                  Jared Arnold

                  AaronHenry DonnaDuncan Matt312 3 Replies Last reply Mar 3, 2020, 4:05 PM Reply Quote 1
                  • AaronHenry
                    AaronHenry Subscriber last edited by Jun 23, 2017, 1:37 PM Jun 23, 2017, 1:37 PM

                    Just thought I'd shoot an update - according to WPEngine the redirect will always be there. No way around it on their platform.

                    waqid 1 Reply Last reply Aug 10, 2022, 4:01 PM Reply Quote 3
                    • 1 / 1
                    1 out of 9
                    • First post
                      1/9
                      Last post

                    Got a burning SEO question?

                    Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                    Start my free trial


                    Browse Questions

                    Explore more categories

                    • Moz Tools

                      Chat with the community about the Moz tools.

                    • SEO Tactics

                      Discuss the SEO process with fellow marketers

                    • Community

                      Discuss industry events, jobs, and news!

                    • Digital Marketing

                      Chat about tactics outside of SEO

                    • Research & Trends

                      Dive into research and trends in the search industry.

                    • Support

                      Connect on product support and feature requests.

                    • See all categories

                    Related Questions

                    • photoseo1

                      Redirecting an Entire Website?

                      redirecting domain redirect former site

                      Is it best to redirect an old website to a new website page by page to like pages or just the entire site all at once to the home page of the new site? I do have about 10 good pages on the site that are worth directing to corresponding pages on the new site. Just trying to figure out what is going to preserve the most link juice. Thanks for the help!

                      Technical SEO | Apr 7, 2024, 8:55 AM | photoseo1
                      0
                    • shawnbeaird

                      301 Redirect for multiple links

                      I just relaunched my website and changed a permalink structure for several pages where only a subdirectory name changed. What 301 Redirect code do I use to redirect the following? I have dozens of these where I need to change just the directory name from "urban-living" to "urban", and want it to catch the following all in one redirect command. Here is an example of the structure that needs to change. Old 
                      domain.com/urban-living (single page w/ content)
                      domain.com/urban-living/tempe (single page w/ content)
                      domain.com/urban-living/tempe/the-vale (single page w/ content) New 
                      domain.com/urban 
                      domain.com/urban/tempe 
                      domain.com/urban/tempe/the-vale

                      Technical SEO | Jan 7, 2017, 3:01 PM | shawnbeaird
                      0
                    • musthavemarketing

                      301 redirects delay in picking up

                      Hi I have been involved in the redesign/development of a website which has up until now had a lot of international traffic.  On day of migration I uploaded all the 301 redirects to the website (wordpress) using Simple 301 redirect plugin.  I tested a number of them and they appeared to be working. I also submitted the new sitemaps to Search Console. Since migration international traffic - particularly from countries such as india, Phillipines, Sri Lanka etc have significantly dropped off whereas the local traffic and some of the international traffic such as USA has remained fairly consistent.  Looking at Analytics and entrances recently it appears as though search results are/were showing a number of pages with 404's (one in particular which received significant traffic and for which I had created a 301 redirection) - I have checked this page using the old url and it re-directs correctly for me and today asked a colleague in India to also check - he is getting the redirection fine.  Does Google.in take a significantly longer time to pick these up in search results? Or am I missing something?

                      Technical SEO | May 26, 2016, 1:40 AM | musthavemarketing
                      0
                    • Pack

                      Redirect non slash to slash

                      Hello SEO gurus We have an issue here ( www.xyz.com.au) is having 200 responses www.xyz.com.au and www.xyz.com.au/ ( when i ran the crawl test i found this ) We have been advised to do a 301 from non slash to slash ( as our other pages are showing up with slash ) for the consistency we decided to go with this but our devs just couldnt do it. Error is - redirect loop and this site is a wordpress one Can anyone help us with this issue? Help is much appreciated.

                      Technical SEO | Dec 15, 2015, 12:55 PM | Pack
                      0
                    • Tintanus

                      Max Number of 301 Redirections?

                      Hi, We currently made a re-design of a website and we changed all our urls to make them shorter. I made more than 300 permanent redirections but plenty more are needed since WMT is showing some more 404s from old urls that I hadn't seen because they were dynamic. The question is, please, is there a limit? I think we have more than 600 already. We don't want to create a php commando to redirect all the old ones to our home, we are redirecting them to their correspondent url. By the way, Im doing them with the 301 method in .htaccess. Thanks in advance.

                      Technical SEO | Jun 29, 2015, 7:01 AM | Tintanus
                      0
                    • Alick300

                      301 redirect using javascript

                      Can I use javascript code to redirect(301) a webpage?

                      Technical SEO | Jun 11, 2016, 6:56 PM | Alick300
                      0
                    • IM_Learner

                      301 Redirect on a PDF, DOCX files?

                      Hi, I have to rename many pdf and docx files. How can I implement 301 redirect on them as they are linked from 'n' number of places? Regards, Shailendra Sial

                      Technical SEO | Jul 31, 2012, 9:53 AM | IM_Learner
                      1
                    • Kotkov

                      302 or 301 redirect to https ?

                      I am redirecting whole site to https. Is there a difference between 302 or 301 redirect for seo? Site never been indexed. Planning to do that with .htaccess command RewriteCond %{HTTPS} !=on
                      RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] There are plenty of ways http://www.askapache.com/htaccess/ssl-example-usage-in-htaccess.html Which way would be the best? Thanks is advance

                      Technical SEO | Feb 19, 2012, 4:19 AM | Kotkov
                      0

                    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
                    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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy

                    Looks like your connection to Moz was lost, please wait while we try to reconnect.