seo

Why does the HTML5 header element require a h tag?

不羁岁月 提交于 2019-12-17 16:45:27
问题 According to HTML5Doctor.com and other HTML5 introductory sites, the header element should contain a h1-h6 tag plus other navigational or introductory content. However, the traditional 'header' on most websites consists of just a logo and some navigational elements. A lot of major sites including Facebook and Twitter use a h1 tag for their logo, which seems illogical to me, since the logo is not the most important or most informative element on the page. A h1 tag appears in the content

Are 301 redirects possible using javascript or jQuery?

微笑、不失礼 提交于 2019-12-17 11:27:28
问题 I'm running Apache 2.0 and I'm just wondering if it is possible to make a 301 redirect using JavaScript or jQuery. I have an <a></a> tag with href to a specified location and I'm asked to make a 301 redirect when I click that link. This is for SEO and I'm trying to find a way to do the 301 redirect to the same page in the link without having to create a new page or create a form/submit. 回答1: In short No . JavaScript runs entirely on the client side. 301 redirects are supposed to come as a

Ignore urls in robot.txt with specific parameters?

我的未来我决定 提交于 2019-12-17 10:31:56
问题 I would like for google to ignore urls like this: http://www.mydomain.com/new-printers?dir=asc&order=price&p=3 All urls that have the parameters dir, order and price should be ignored but I dont have experience with Robots.txt. Any idea? 回答1: Here's a solutions if you want to disallow query strings: Disallow: /*?* or if you want to be more precise on your query string: Disallow: /*?dir=*&order=*&p=* You can also add to the robots.txt which url to allow Allow: /new-printer$ The $ will make

pushState and SEO

混江龙づ霸主 提交于 2019-12-17 08:03:21
问题 Many people have been saying, use pushState rather than hashbang. What I don't understand is, how would you be search-engine friendly without using hashbang? Presumably your pushState content is generated by client-side JavaScript code. The scenario is thusly: I'm on example.com . My user clicks a link: href="example.com/blog" pushState captures the click, updates the URL, grabs a JSON file from somewhere, and creates the listing of blog posts in the content area. With hashbangs, google knows

pushState and SEO

主宰稳场 提交于 2019-12-17 08:03:18
问题 Many people have been saying, use pushState rather than hashbang. What I don't understand is, how would you be search-engine friendly without using hashbang? Presumably your pushState content is generated by client-side JavaScript code. The scenario is thusly: I'm on example.com . My user clicks a link: href="example.com/blog" pushState captures the click, updates the URL, grabs a JSON file from somewhere, and creates the listing of blog posts in the content area. With hashbangs, google knows

Best JSON-LD practices: using multiple <script> elements?

↘锁芯ラ 提交于 2019-12-17 07:14:11
问题 I'm curious about the best practice for applying JSON-LD onto a site for schema.org. If I have a page with an Article and I also want to define WebSite on my page, I would have this: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "http://www.example.com/", "potentialAction": { "@type": "SearchAction", "target": "http://www.example.com/search?&q={query}", "query-input": "required" } } </script> <!- … --> <script type="application/ld+json"> { "

Remove index.php?route=common/home from OpenCart

假装没事ソ 提交于 2019-12-17 06:37:21
问题 I currently have User SEO URL's set to Yes in OpenCart Admin. System -> Settings -> Store -> Server -> User SEO URL's So far, all tags and SEO links are working; the command has done the desired effect. However for the homepage and a few other links; how do I remove: index.php?route=common/home From the URL? Do I have to literally do a find and replace in the hardcode PHP files and risk upgrades or is there another way? (without bloating performance i.e no poor amateur tools such as vQmod)

前端开发之logo的seo优化

百般思念 提交于 2019-12-16 02:28:13
LOGO SEO优化 logo里面首先放一个 h1 标签,目的是为了提权,告诉搜索引擎,这个地方很重要 h1里面再放一个 链接 ,可以返回首页,把logo的背景图片给链接即可 为了搜索引擎收录我们,我们链接里面要放 文字(网站名称) ,但是文字不要显示出来 <方法一>: text-indent 移到盒子外面(text-indent:-999px),然后 overflow:hidden ,淘宝的做法 <方法二>:直接给 font-size:0; ;就看不到文字了;京东的做法 最后给链接一个 title 属性,这样鼠标放到logo上就可以看到提示文字了。 来源: CSDN 作者: 涛小弟 链接: https://blog.csdn.net/weixin_44606131/article/details/103532806

google indexing text retrieved by ajax or javascript after page load

社会主义新天地 提交于 2019-12-14 03:56:14
问题 a couple of google questions: 1 - is there ANY chance that google will "see" text retrieved using ajax? the user selects from a chain of select boxes and some text from the Db is displayed. 2 - if i change the page title using javascript, outside the HEAD area, will google index the modified title? sorry if these are trivial questions and thanx for any reply have a nice day :-) 回答1: What Google sees is what you see when you disable javascript on your browser. So the answer to both your

Wordpress - different post title on frontend than in url [closed]

扶醉桌前 提交于 2019-12-14 03:28:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I need to change Wordpress theme function.php file so it will show custom name for post on frontend which is different than the title in post editor/URL. For instance: Post title in text editor/url is "New York" but on front end will be shown "New York - never sleeping city". The reason for this is to shorten