Catch redirect from another domain - .htaccess

I have a question about redirection 301 or 302.
For ex. i have domain www.example.com.
It's a good site with a good domain history. Some 'BAD' webmasters make sometimes a redirect from bad-histories domain with search bans to redirect it to good domains to downgrade good sites in search system query as Google.
So question is: is it possible to know, have someone made this bad-redirect?
As i understand in each html response html headers are transmitted. May by there is a way to catch this responses to detect such redirects?
Is it well-known practice?
Or it is impossible and it's like paranoia?

I think is paranoia, but major browsers still keep the referrer in the redirection and can be read at destination. In php is:
$referral = $_SERVER['HTTP_REFERER'];
you can trap all referrer urls in a log file and I have no idea how to filter out good sites. this way you will discover only redirects only from websites heaving some traffic;

Related

Partial 301 redirects & SEO strategy

This is somewhat of a subjective question. But would like the communities take on this. My client is doing a site split. www.domain1.com will turn in to -- www.domain1.com + www.domain2.com. I know this isn't typically advisable from an SEO perspective, but they are doing it for legal reasons.
Our plan is to only rip out the product pages on www.domain1.com and add those on www.domain2.com everything else on domain1 will stay and everything else on domain2 will be original content. So here's the question, still a good idea to do single page 301 redirects for the pages that are transferred?
www.domain1.com/apples > www.domain2.com/apples
I know that's a bit open-ended, without a ton of detail, but if you have specific examples of where you've done something similar, I'd be curious to know what worked/didn't.
Yes, with a clarification: http 301 is the best for your purpose, because it means permanent redirect (good for SEO, you pass the page and domain authority, link juice...); instead a 302-redirect (http 302) means a temporary redirect, you have no time limits but all the SEO value won't pass! For your purpose, you don't want that.
In general, all pages should be redirected with http 301. Aniyway, with data analysis you can make a decision: if you have a page unuseful, with no traffic, it doesn't need to be redirected, you can use http 404 or http 410 (you can build also a custom 404 page!).
The last thing, must avoid multiple redirects, for example: instead of site1-->site2-->site3 you just need to do: site1-->site3. The reason is each redirect hurts loading speed (also the most common and useful redirect, from http to thhps!!). You just need to avoid multiple ones.

Will making my site secure (https) affect my google ranking?

I am managing a website (www.faa.net.au) which is currently running as a standard http:// website.
I am now looking at capturing some information that needs to be confidential. In order to do this, I am looking at purchasing an SSL Certificate for this particular domain.
I have 2 questions really:
Will my Rankings be effected at all?
Will I need to set up 301 redirects if there are links that are referring to http:// instead of https://?
Gong HTTPS will not negatively affect your page rankings. And yes, you should set up a 301 redirect unless this is a temporary change.
In a nutshell, the search engine bots connect to the pages as normal, so it doesn't matter if it's using SSL/TLS or not. The 301 will pretty much update the bots with the current information.
Going https will actually positivly affect your site's SEO as Google has now introduced it as a ranking factor. http://googlewebmastercentral.blogspot.co.uk/2014/08/https-as-ranking-signal.html

Does marginally changing a well established domains URLs and page content affect site ranking in search engines

I am rewriting a web application and will be porting procedural PHP code to a framework.
At the same time, the layout of the pages (but not the critical content) is not changing.
I'm thinking that I need to some how port the old URLs by using a 301 Redirect permanent.
Any advice on how to proceed? As this site is long established with a good reputation, it's important we maintain rankings in Bing and Google.
Thanks.
You should use 301 redirects instead, that will carry over the data the engines have for those pages and you should be fine

bots and 301 redirect

I have changed the structure of the URLs of my site more than 6 months ago. I detect the use of legacy URLs and redirect to the new URL with a 301 status code. I verified with flidder that the status code is correctly returned upon the request. But bots (yahoo slurps, googlebot, etc.) are still hitting the old URLs. Is there something I am missing?
No, just it takes a very, very long time for crawlers to get the message. I have bots crawling addresses that have not existed since 2005 - when folk harp on with addresses being permanent, they really are.
Additionally, depending on how your URL's are structured, you can disallow the old addresses with robots.txt
Try this and this will only redirect to the bots.
if (preg_match("#(google|slurp#inktomi|yahoo! slurp|msnbot)#si", $_SERVER['HTTP_USER_AGENT'])) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.your-main-site.com/");
exit;
}
If external sites have linked to your old pages and those links are still accessible for bots, the bots will keep coming and try to access the content.
mentioned you site address here:
http://www.your-main-site.com/
Thats we use to transfer the domain and sometime for blackhat seo.

efficient way to check parked domains?

I am writing a script that checks if given domain is parked or not. so far, I have this solution:
add couple of characters at the end of the url.
if url redirects to another page and
returns 302 http status code then it is parked domain.
returns other than 302 then it is normal domain.
but some normal domains also return 302.
so any suggestions are greatly appreciated.
It's not as simple as that. A 302 response just means content is temporarily at a different location. This can happen on a normal website and it doesn't always happen on a parked site.
I worked at an ISP with over 20,000 parked domains and we didn't use 302's on any of them.
I don't think you'll find a 100% solution for this. Even if you checked the page for phrases such as "Buy This Domain" and "This Domain May Be For Sale" you won't know for sure.

Resources