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!
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
-
F rated page appearing higher than A rated page
Hi, We have a page that we have optimised in the MOZ system and got a grade A for the term "Dental Implants Wolverhampton" The page that has been optimised isn't being indexed in google http://www.perfectdental.eu.com/treatments-implants.php However, this page http://www.perfectdental.eu.com/uk-clinics-dental-team.php Which hasn't been optimised is indexed 11. If i run this page through the MOZ "on-page checker" it receives a quality score of F. Its very confusing, would be great to hear from anyone with any ideas? Thanks
Moz Pro | | popcreativeltd
Ade0 -
Moz has a problem connecting to my GA account. But it hasn't changed..?
A client recently rebuilt there site. Same URL, same Google Analytics code. When I log into my SEOmoz campaign for this site, I get this message: It appears there's a problem with our connection to your Google Analytics account. Please go to your Settings page to update your connection. There is nothing to update however. Nothing should have changed in my settings. Do I need to start over here? Any help is appreciated (I know analytics is working, checked it this morning.....)
Moz Pro | | cschwartzel0 -
Backlink of competitor inner page
How to understand from where the link to a competitor's internal page http://www.exampledomain.com/contest/book are coming? I mean, we want promote the same "event" but we want understanding where the competitor is already present. Open Site Explorer doesn't have any data for the website listed but I'm sure that the page has a lot of backlinks (I've verified the first 50 manually in Google.it) Many Thanks for all your advices.
Moz Pro | | YESdesign0 -
Is there a way to get SEOMOZ to not throw an error if i'm using the rel=canonical tag?
There are so many errors (~1500) that I can't find the pages with duplicate content among the ones that are correctly tagged
Moz Pro | | seospeedwagon0 -
I'm having a hard time understanding branded keywords. When wouldn't I want to brand a keyword?
For example, why wouldn't I want to brand all my keywords with my company name?
Moz Pro | | PolarisWebSEO0 -
Only 1 page has been crawled. Why?
I set a new profile up a fortnight ago. Last week seomoz crawled the entire site (10k pages), and this week has only crawled 1 page. Nothing's changed on the site that I'm aware of, so what's happened?
Moz Pro | | tompollard0 -
If my keywords aren't driving any traffic to my site, why am I still ranking for them?
In several of our campaigns we have watched our keywords steadily climb the rankings without ever registering so much as a blip in the traffic data column. If these keywords aren't driving any traffic to our site, how are we still ranking for them?
Moz Pro | | MackenzieFogelson0 -
Page Authority vs Domain Authority
I'm using the site explorer to compare a potential clients site against 4 others, in an incredibly competitive market. Each of their competitiors has a higher page authority (on the home page) than their domain authority. This is untrue for the clients site. (which have much lower metrics all round) Any input as to what this means/says about their competitors who I would guess (looking at some of their backlink profiles) have done some failry widespread grey hat stuff in the past. (Though haven't we all 😉 )
Moz Pro | | FDC0