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
-
Duplicate Content: Marketing Page / Content Page
So I am getting duplicate content warnings on my website for my pages white paper and webinar video pages. Each white paper / webinar video page is behind a marketing form page that must be filled out. I am getting a lot of warnings that the marketing page and the content page are being picked up as duplicated content. In the past, both the marketing page and the content page were given the same title and url, the body content is not similar. My question: Is the URL / Title similarity enough to set off the duplicate content warnings and would changing one or the other solve the issue?
Moz Pro | | AllMedSeo0 -
1 page crawled ... and other errors
1. Why is only one (1) page crawled every second time you crawl my site? 2. Why do your bot not obey the rules specified in the robots.txt? 3. Why does your site constantly loose connection to my facebook account/page? This means that when ever i want to compare performance i need to re-authorize, and therefor can not see any data until next time. Next time i also need to re-authorize ... 4. Why cant i add a competitor twitter account? What ever i type i get an "uh oh account cannot be tracked" - and if i randomly succeed, the account added never shows up with any data. It has been like this for ages. If have reported these issues over and over again. We are part of a large scandinavian company represented by Denmark, Sweden, Norway and Finland. The companies are also part of a larger worldwide company spreading across England, Ireland, Continental Europe and Northern Europe. I count at least 10 accounts on Seomoz.org We, the Northern Europe (4 accounts) are now reconsidering our membership at seomoz.org. We have recently expanded our efforts and established a SEO-community in the larger scale businees spanning all our countries. Also in this community we are now discussing the quality of your services. We'll be meeting next time at 27-28th of june in London. I hope i can bring some answers that clarify the problem we have seen here on seomoz.org. As i have written before: I love your setup and you tools - when they work. Regretebly, that is only occasionally the case!
Moz Pro | | alsvik1 -
SeoMoz: Competitive domain analysis report doesn't add up?
Hi, When I check OSE against the Competitive Domain Analysis report in my account the numbers are way off. If the CDA report was 100%, OSE is showing 30% of that. I'm looking at linking root domains with no filters applied. Is the data not pulled from the same db? Thanks.
Moz Pro | | Bondara0 -
Did Profiles on SEOmoz get de-indexed?
Hi fellow mozzers My profile page on SEOmoz has always ranked well for my full name "Jacob Eeckhout". Recently I noticed that it doesn't show anymore, even for the query site:seomoz.org "jacob eeckhout". Does anyone know what happened?
Moz Pro | | Jacobe0 -
Change the labels' name
Hello, I defined various labels and linked them to groups of keywords. Nevertheless, I'd like to change the name of one label, but it seems to be impossible. How could I do ? Thanks,
Moz Pro | | soliste690 -
Duplicate page title
Hello my page has this Although with seomoz crawl it says that this pages has duplicate titles. If my blog has 25 pages, i have according seomoz 25 duplicate titles. Can someone tell me if this is correct or if the seomoz crawl cannot recognize rel="next" or if there is another better way to tell google when there a pages generated from the blog that as the same title Should i ignore these seomoz errors thank you,
Moz Pro | | maestrosonrisas0 -
SEOmoz Crawl CSV in Excel: already split by semicolon. Is this Excel's fault or SEOmoz's?
If for example a page title contains a ë the .csv created by the SEOmoz Crawl Test is already split into columns on that point, even though I haven't used Excel's text to columns yet. When I try to do the latter, Excel warns me that I'm overwriting non-empty cells, which of course is something I would rather not do since that would make me lose valuable data. My question is: is this something caused by opening the .csv in Excel, or earlier in the process when this .csv is created?
Moz Pro | | DeptAgency2 -
Can't find email address or contact form on website I want link from
Hi, How do you use whois or other resources to find an email address for a site that doesn't list their email address or have a contact form? Our competitors look like they have contacted the site but I don't know how to contact the site myself. They have a facebook fan page and a twitter account. Thanks.
Moz Pro | | BobGW0