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. Moz Pro
    4. My page has a 302 redirect and I don't know how to get rid of it!

    My page has a 302 redirect and I don't know how to get rid of it!

    Moz Pro
    10 4 16.3k
    • 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.
    • vanessacolina
      vanessacolina last edited by

      I use Internet Officer tool to see the 302 redirect but I check the redirects in the CPanel and there are none. In the .htaccess there are none either. I don't know where else to look 😞

      The url is http://servicioshosting.com

      Can you guys help me? I can't set up a campaign because Google can't crawl the website. I can't setup the Facebook OpenGraph because of the redirect.

      error.jpg

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

        I get this using httpfox.

        302 Redirect to: / http://servicioshosting.com/

        I also see the redirect on https://www.servicioshosting.com/index.php when I first switched to English language from the home page. Then when reloading https://www.servicioshosting.com/index.php there was no 302.

        I also noticed that when I deleted servicioshosting.com cookies and reloaded https://www.servicioshosting.com/index.php the 302 was back.

        So I suspect it is something to do with the way the CMS is using cookies, since crawlers don't set cookies they get the 302.

        I guess you'll need to dig into the CMS/talk to a developer. Good luck!

        1 Reply Last reply Reply Quote 0
        • Saijo.George
          Saijo.George last edited by

          IT could be an on-page redirect . Open up your index file equivalent and look for something like

          Header( "Location: http://servicioshosting.com/`" );`

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

            Ok, I'm looking. I also check the .htaccess again. Could this be the redirect:

            RewriteCond %{HTTP_HOST} ^servicioshosting.com$ [OR]

            RewriteCond %{HTTP_HOST} ^www.servicioshosting.com$

            RewriteRule ^whmcs/?$ "http://www.servicioshosting.com/clientarea.php" [R=301,L]

            I keep erasing the first two lines and they keep coming back when I check back the .htaccess,

            JaspalX 1 Reply Last reply Reply Quote 0
            • JaspalX
              JaspalX @vanessacolina last edited by

              I don't think that's it - that's a 301 redirect and the issue you reported is a 302.

              If you see the same issue I do with cookies affecting the result, then I'd suggest that is a clue - as far as I know htaccess redirects don't make use of cookies.

              vanessacolina JaspalX 4 Replies Last reply Reply Quote 0
              • vanessacolina
                vanessacolina @JaspalX last edited by

                Yes, I checked and whenever there is a cookie set the 302 redirect disappears. If I delete the cookies it comes back. The system I use for the website template is the WHMCS, there is a file for setting the cookie for affiliates links (aff.php), and at the end there is this:

                header("HTTP/1.1 301 Moved Permanently");

                header("Location: ".$CONFIG["Domain"]);

                1 Reply Last reply Reply Quote 0
                • JaspalX
                  JaspalX @JaspalX last edited by

                  Sorry, on the edge of my knowledge, perhaps try removing those lines and seeing the effect? (I'd try removing them one at a time starting with the second one).

                  1 Reply Last reply Reply Quote 0
                  • vanessacolina
                    vanessacolina @JaspalX last edited by

                    It didn't work 😞
                    Something strange: I have the site running locally in my computer with MAMP. When I check the HTTP response in my local website it doesn't have the redirect, it has an OK 200 code.

                    Could this mean it's a server issue? And if so, where do I check?

                    1 Reply Last reply Reply Quote 0
                    • JaspalX
                      JaspalX @JaspalX last edited by

                      If you're sure that the files on mamp and what's on the server are the same, then perhaps your hosting company is doing something or there's something in the config of the web server.

                      Sorry Vanessa, that's as much as I can help with - guess you need to find someone who knows whmcs 😞

                      Good luck, would be good to know how it works out and what the solution is.

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

                        I had this problem exactly and it turns out it was an index file on the server for the old page.

                        It was the only temporary redirect on the site so it was driving me mad and I wanted rid of it! FTP onto the server and check the folder for the old page which will likely contain an index file. the 302 was in there for us.

                        This is an old question but posting this for people in future.

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post
                        • Why my site page don't appeare in the ranking ?
                          RepLoc_Tim
                          RepLoc_Tim
                          0
                          3
                          133

                        • Duplicate page reported in Wordpress site, but I can't find it in All Pages list
                          BlueprintMarketing
                          BlueprintMarketing
                          0
                          6
                          360

                        • I did a redirect and now I'm getting duplication errors.
                          THMCC
                          THMCC
                          0
                          3
                          259

                        • I'm trying to get 'tigi bed head' up most of all...
                          smoki666
                          smoki666
                          0
                          7
                          633

                        • Why can't I add my facebook page to SEOMOZ? Also having other facebook issues.
                          KeriMorgret
                          KeriMorgret
                          1
                          11
                          2.3k

                        • I don't get what a dynamic URL is?
                          evolvingSEO
                          evolvingSEO
                          0
                          4
                          623

                        • Fetch googlebot for sites you don't own?
                          loopyal
                          loopyal
                          0
                          4
                          2.8k

                        • Google UK rankings don't seem to be accurate.
                          EdwardUpton61
                          EdwardUpton61
                          0
                          3
                          636

                        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