seo

Canonical URL link

寵の児 提交于 2021-02-10 18:18:59
问题 I am using a canonical url link <link rel="canonical" href="http://test123.com" /> to avoid duplicate content issues between http and https versions of a site. At the moment I have it set up that both the http and https versions have the canonical link in the head section. Is this correct or should I only have the canonical link in the head section on the https version and nothing on the http version? Or does it matter either way? (I want bots to index my http version and not my https version

Does an AMP url retain the query parameters?

大憨熊 提交于 2021-02-08 10:28:46
问题 I've seen this question asked before but a straight answer is hard to find. I've heard both sides of the story from reliable sources. Documentation is limited but I did find this article from Google. https://developers.google.com/amp/cache/overview#query-parameter-example TLDR: Query parameter example The AMP Cache URL format can also include parameters in the query string. The following is an HTTPS example with parameters: https://example-com.cdn.ampproject.org/c/s/example.com/g?value=Hello

Linked in share and hashbang url

回眸只為那壹抹淺笑 提交于 2021-02-08 08:52:26
问题 I have a question about linkedin and sharing url with hashbang (angular app). It seems like if the hashbang is right after first slash (www.example.com/#!/someString) the LinkedIn bot will issue request for www.example.com/ . But if the shared url is like www.example.com/someString/#!/otherString linkedin bot issue request for www.example.com/someString/?_escaped_fragment=/otherString . Do you have some working solution for sharing hashbang urls? I found one stackoverflow question from 2013,

Safari Adds Trailing Slash

怎甘沉沦 提交于 2021-02-08 05:28:14
问题 I've got an ASP.NET website that uses URLRewrite 2 to remove trailing slashes from the URL. We noticed that Safari on Mac does not obey this rule. It always leaves the trailing slash in the URL. SEO Moz is showing both URLs which appears to be a potential duplicate content issue. Here is the URLRewrite rule in our Web.Config <rule name="Remove trailing slash" stopProcessing="true"> <match url="(.*)/$" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add

Angular Universal generate 404 (and other HTTP codes) header

一曲冷凌霜 提交于 2021-02-07 08:15:23
问题 I'm creating a website using Angular Universal. It will have server-side rendering in order to make it indexable by search engines. I already coded my 404 fallback route, it displays its component correctly, but it displays it with a HTTP 200 header code. How can I force a specific header code ? I googled some queries, but everything I found seemed to be about reading an HTTP call's status code, and nothing on how to write it to the browser. 回答1: Ok, I've finally succeeded. I started over,

Angular Universal generate 404 (and other HTTP codes) header

不羁岁月 提交于 2021-02-07 08:14:46
问题 I'm creating a website using Angular Universal. It will have server-side rendering in order to make it indexable by search engines. I already coded my 404 fallback route, it displays its component correctly, but it displays it with a HTTP 200 header code. How can I force a specific header code ? I googled some queries, but everything I found seemed to be about reading an HTTP call's status code, and nothing on how to write it to the browser. 回答1: Ok, I've finally succeeded. I started over,

How to fetch YOAST SEO plugin data using WP REST API plugin ? Specially the wpseo_head hook content

微笑、不失礼 提交于 2021-02-07 03:37:56
问题 I'm using WP REST API to fetch all the post data. Well, it works perfectly, but the major concern for any website is the SEO part. I'm using YOAST SEO plugin. I want to fetch all the Meta tags it creates in the Head section of HTML. FYI im using Wordpress as Backend and Nodejs in frontend. The solution is simple. I have added custom endpoints in the function.php file. You can see this Adding Custom Endpoints 来源: https://stackoverflow.com/questions/37290983/how-to-fetch-yoast-seo-plugin-data

How to fetch YOAST SEO plugin data using WP REST API plugin ? Specially the wpseo_head hook content

自古美人都是妖i 提交于 2021-02-07 03:36:51
问题 I'm using WP REST API to fetch all the post data. Well, it works perfectly, but the major concern for any website is the SEO part. I'm using YOAST SEO plugin. I want to fetch all the Meta tags it creates in the Head section of HTML. FYI im using Wordpress as Backend and Nodejs in frontend. The solution is simple. I have added custom endpoints in the function.php file. You can see this Adding Custom Endpoints 来源: https://stackoverflow.com/questions/37290983/how-to-fetch-yoast-seo-plugin-data

Removing pages from search engine results

我是研究僧i 提交于 2021-02-05 11:42:10
问题 Hey everyone, I'm a bit new to SEO. I built a one page website that initially utilized several pages (but are now removed), and it looks as if Google has indexed those so that they show up as search results. Is there any way to remove those from the search results? Thanks. 回答1: Google has a page describing how to remove your site from their results. 回答2: <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> 回答3: You can use Robots exclusion rules. This site details it : http://www.robotstxt.org/

Hide links from Google via JavaScript

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-05 07:39:44
问题 We have some links we want to hide from Google, using Javascript to "hide" the link but let it work for the real clients. I was told from the SEO agency that the best method is to base64 encode the link and call it via javascript: <a data-href="RdcDovL1N0YWdpbmc...base64...hhcmRpbmctaGVycmVuLWhlbaQtMTgyMDg3" href="#">Link</a> <script> <!-- var _dlist = document.getElementsByTagName('A'); for(i=0;i<_dlist.length;i++) { var _data = _dlist[i].getAttribute( 'data-href' ); if( _data !== 'null' ) {