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
-
Page Optimization Score is 100%
I have added a page for a particular product, sodium bisulfate, Page Optimization Score is totally green 100%, what should I do, either to sit back and see the results? http://waqaschemicals.com/site/sodium-bisulphate-bisulfate-from-turkey/ I typically do not understand while using the Moz that exactly line of action do I have to follow for to bring the good result for the keyword "sodium bisulfate"? How much does a google takes time to get your 100% things on the first page ? I'm not good in SEO but few knowledge step by step What is the best things to do for good SEO.
Moz Pro | | waqaspuri0 -
Help me to know why are all pages not being tracked by the Moz tool for on-page optimization reports?
The On-page Optimization report that the Moz tool shows, is not tracking all the pages from my website. I know this because it isn't showing a ranking for all pages on my website. Is there a particular reason why this is happening? It is important for me to know details of all pages, else it does not give me a comprehensive picture of what's going on in SEO.
Moz Pro | | jslusser0 -
On-Page SEO Fixes - Are They Relative?
So, I'm implementing on-page fixes for a site that my company runs SEO services for (www.ShadeTreePowersports.com). However, I was wondering if there was a way to rank a pages' SEO quality, in general? As of now, it seems like the only way your recommendations can be consumed and altered is on a keyword basis. However, this seems be the reason I have a good amount of my F-Grades. Since my website sells powersports apparel and accessories, we cover a variety of applicable (but different) keywords like 'Motorcycle parts' or 'snow tubes,' because we sell so many different types of products. But, when I look at my F-Grades - SEOMoz is telling me my homepage is ranking poorly for a multitude of those pertinent keywords - but only because my page isn't catered specifically to each of them (IE: 'Snowmobile Parts' - 'Water Sport Apparel') But, with so many different types of products, catering to a specific one is impossible and would be detrimental. Is there a way to see how a page ranks, without factoring in those keywords? Or a better way that I can use these recommendations more efficiently? Thanks guys!
Moz Pro | | BrandLabs0 -
Need to find all pages that link to list of pages/pdf's
I know I can do this in OSE page by page, but is there a way I can do this in a large batch? There are 200+ PDF's that I need to figure out what pages (if any) link to the PDF. I'd rather not do this page by page, but rather copy-paste the entire list of pages I'm looking for. Any tools you know of that can do this?
Moz Pro | | ryanwats0 -
Why do I keep getting "more than one canonical URL tag" on-page factor when, in fact, there is always only one?
The following are pages that SEOMOZ says have "more than one canonical URL tag" but they all have only one. Can someone help me understand this?http://www.lasercenterny.com/Laser-Hair-Removal-Binghamton/tabid/1950/Default.aspxhttp://www.lasercenterny.com/Hair-Removal-Binghamton-NY/tabid/1949/Default.aspxhttp://www.lasercenterny.com/Hair-Removal-Binghamton/tabid/1948/Default.aspx
Moz Pro | | SmartWebPros0 -
Why There is no Page Authority in none of my websites?
I just saw, SEOMoz updated their Page Authority, Mozrank and Domain Authority. However in most of my websites, the Page Authority got reset. Am I doing something wrong?
Moz Pro | | GroupM0 -
Why am I getting 400 client errors on pages that work?
Hi, I just done the initial crawl on y domain and I sem to have 80 400 client errors. However when I visit the urls the pages are loading fine. Any ideas on why this is happening and how I can resolve the problem?
Moz Pro | | moesian0 -
Why do pages with canonical urls show in my report as a "Duplicate Page Title"?
eg: Page One
Moz Pro | | DPSSeomonkey
<title>Page one</title>
No canonical url Page Two
<title>Page one</title> Page two is counted as being a page with a duplicate page title.
Shouldn't it be excluded?0