My page has a 302 redirect and I don't know how to get rid of it!
-
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.
-
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.
-
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.
-
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?
-
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).
-
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"]);
-
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.
-
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,
-
IT could be an on-page redirect . Open up your index file equivalent and look for something like
Header( "Location:
http://servicioshosting.com/" );
-
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!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
Pages with Duplicate Content Error
Hello, the result of renewed content appeared in the scan results in my Shopify Store. But these products are unique. Why am I getting this error? Can anyone please help to explain why? screenshot-analytics.moz.com-2021.10.28-19_53_09.png
Moz Pro | | gokimedia0 -
403 error but page is fine??
Hi, on my report im getting 4xx error. When i look into it it says the error is crital fo4r 403 error on this page https://gaspipes.co.uk/contact-us/ i can get to the page and see it fine but no idea why its showing a 403 error or how to fix it. This is the only page that the error is coming up on, is there anything i can check/do to get this resolved? Thanks
Moz Pro | | JU-Mark0 -
Magento- Temporary Redirects
Hey guys! My organization just launched an eCommerce site and we are receiving a lot of temporary redirect issues. How do you solve this issue (36k of them) within Magento Enterprise? 1. All settings have been changed to 301 redirects but I am still receiving the same errors during my crawl report. 2. Website URL = www.CanyonOS.com Any support or advice is greatly appreciated! Oh and if you need any toner, you know where to go :)! Sincerely,
Moz Pro | | CanyonOS0 -
Page with "Missing Title Tag" isn't a page
Hello, I am going through the various errors that the Moz Pro Crawl report and some non-existent pages keep coming up in the report. For example, one error category is "Missing Title Tag" with one page identified. But this page http://www.immigroup.com/news/“http%3A/crs.yorku.ca”?page=2 isn't real. It would have been a 404 were there not a redirect for everything that is /news/gobbledygook to /news. So my question is: when moz (or GA for that matter) identifies these pages as "real" and having errors, do I need to take this seriously? And what do I do about it? Thanks! George
Moz Pro | | canadageorge0 -
How to remove 404 pages wordpress
I used the crawl tool and it return a 404 error for several pages that I no longer have published in Wordpress. They must still be on the server somewhere? Do you know how to remove them? I think they are not a file on the server like an html file since Wordpress uses databases? I figure that getting rid of the 404 errors will improve SEO is this correct? Thanks, David
Moz Pro | | DJDavid0 -
Is www.domain.com/page the same url as www.domain.com/page/ for Google? (extra slash at end of url)
Dear all, in open site explorer there is a difference the url's 'www.domain.com/page' and 'www.domain.com/page/' (extra slash at end). There can be different values in pageauthority etc. in the open site explorer tool, but is this also the case for Google? Thanks for replying, Regards, Ben
Moz Pro | | HMK-NL0 -
'Appropriate Use of Rel Canonical', Critical Factor but appears correct on page
Hi, Trying to get the following page ranked unsuccessfully.... http://www.joules.com/en-GB/2/Collections-Quilted-Jackets/c01c02.r16.1 Instead a product page is being ranked, shown below.... http://www.joules.com/en-GB/Womens-Quilted-Jacket/Navy/M_HAMPTON/ProductDetail.raction When I run the on page report card it advises that the Rel Canonical tag needs to point to that page, but we have checked and it looks to be doing that already. Has anyone else had an issue like this? Thanks, Martin
Moz Pro | | rockethot0 -
Sorting On-page Optimization Reports
I know there are several pre-set ways to sort the on-page optimization reports, but how can I custom sort them into my own order?
Moz Pro | | WillWatrous0