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 -
Why did I not get on page analysis
I signed up last Friday for a 30 day trial and was hoping to get the on page analysis so I could get cracking on it. Moz said the crawl was done but I have no info for on page analysis which I find really useful when I have used this before. Any ideas and are any of the MOZ moderators able to get the system to perform one so I can make changes tonight for the MOZ crawl again tomorrow? Thanks Paul
Moz Pro | | ptrobson0 -
'Too many on-page links': doesn't add up...
Hi All, I'm fairly new to the site, have had a full site crawl and am somewhat confused by a large number of pages (82) reported as showing 'too many on page links'. Mine is a new e-commerce site selling a project management methodology. I have about 80 pages which describe individual templates and contain internal links to additional, related content on the site. The crawl warnings define too many on page links as roughly 100 "on any given page" yet almost none of the pages flagged contain more than 20-30 on links. Any thoughts and ideas about (a) the degree to which this will aeffect my ranking in practice and (b) how to resolve it gratefully received! Thanks in advance, Felix
Moz Pro | | RomanCat0 -
Issue getting total links, page & domain authority
Hi guys, I am trying to get total links, page & domain authority using the API. I am requesting the following columns: Cols=6871947673632768328204816384343597383681653687091214 { "fjid": 207343179, "ued": 43324279, "pib": 255645, "ptrr": 0.0056131743357352125, "fmrp": 8.246626591590841, "unid": 954915, "fjf": 4003651, "fjr": 0.00040067116628622016, "ftrp": 8.308303969566644, "ftrr": 0.0012189619975325583, "fejp": 9.265328830369816, "pnid": 45883246, "fjd": 2480265, "ujfq": 1277385, "pjip": 1230240, "fjp": 9.586342983782004, "fuid": 294877628, "uu": "www.google.com/", "pejr": 0.0004768398971363439, "ufq": "www.google.com/", "pejp": 9.647424778525615, "ujp": 300689, "utrp": 7.916901429865898, "ptrp": 9.487254666203722, "utrr": 0.001639219985667878, "fmrr": 0.000731592927123369, "pda": 100, "pjd": 5600882, "ulc": 1342758719, "fnid": 12165784, "fejr": 0.00016052965883996156, "ujb": 107264 } I cannot see the UPA column returned in the JSON object. Im using 34359738368 for the UPA column. I need to retrieve the three fields (page authority, domain authority and total links) in the same query. Is it possible?
Moz Pro | | Srvwiz0 -
Keyword Ranking weekly update didn't happen
A new campaign of mine is supposed to update its keyword rankings on Wednesdays but as of Thursday morning it didn't happen. I've got the original stats from the first few keywords I added when the campaign was set up, but nothing for the keywords that were added in the next day. Previous experience with this tool was pretty reliable so I'm just wondering if anyone is experiencing the same thing.
Moz Pro | | ninjaprecision0 -
301 redirect
Hello, I received a crawl diagnostic report for the website http://www.advancedemt.com here's what it said: Issue: (301 redirect) Page Title URL:http://advancedemt.com/ Redirects to:http://http://www.advancedemt.com/ I called seohosting.com for help: They checked my .httaccess file and did not find anything that would cause this 301 redirect.. Cpanel was evaluated for a 301 redirect and nothing there either. MyPHP Admin was checked for anything that could possibly cause this issue. They had a tech search the entire database and no luck on any issue that may be causing the SEOmoz software to pick up this 301 redirect. We checked the Wordpress settings... No discrepancies. Wordpress permalinks... No problems..... We checked Google to see if they may have indexed the site for the error with no luck... I told the SEO Hosting staff that the canonical feature that has been built into Wordpress would prevent this redirect from allowing Google to index the site with this error. Is it possible that the crawl diagnostics is wrong??? Please help... Best regards, Jeff Bratcher (404) 520-2385
Moz Pro | | Jeff10 -
How do i increae my page authority
Hi i am still finding my way around semoz and still learning what the tools do and i am trying to find out how i can increase my page authority. My competition page authority is 52 while mine is 36 and i would like to learn how i can increase mine to beat my competition. If anyone could give me some step by step instructions on what tools i should use and how i should use them to increase my page authority many thanks
Moz Pro | | ClaireH-1848860 -
Most of the time getting error.
Hi, i am getting this error most of the time in linkscape since last month. Sorry dude, no inlinks found matching this criteria. Pl guide is this a bug and the sites I am trying to use linkscape for were having lot of pages crawled earlier by SEOMOZ. Thanks, Preet
Moz Pro | | PreetSibia0