seo

ASP.NET MVC Routing / SEO Friendly URL

淺唱寂寞╮ 提交于 2019-12-18 12:29:28
问题 I'm trying to do something like stackoverflow Take a link from stackoverflow for example: Hidden Features of C#? if you remove the last part (Hidden Features of C#?) it still returns the same result. For my routing in Global.asax I tried doing something like "{action}/{id}/{title}" On my page, this is my link: <%= Html.ActionLink(video.Title, "Details", "Videos", new {id = video.ID, title = video.Title.Replace(" ", "-")}, null) %> This does what I want it to do for the most part except that

Making AJAX Applications Crawlable? How to build a simple web service on Google App Engine to produce HTML Snapshots?

 ̄綄美尐妖づ 提交于 2019-12-18 12:18:24
问题 Real World Problem: I have my app hosted on Heroku, who (to my knowledge) are unable to offer a solution for running a Headless (GUI-less) Browser - such as HTMLUnit - for generating HTML Snapshots for Googlebot to index my AJAX content. My Proposed Solution: If you haven't already, I suggest reading Google's Full Specification for Making AJAX Applications Crawlable. Imagine I have: a Sinatra app hosted on Heroku on the domain http://example.com the app has tabs along the top of the page TabA

How to remove params from url codeigniter

廉价感情. 提交于 2019-12-18 09:02:50
问题 I have url like this : http://domain/sentencijos/autoriai/429/marselis-prustas , where sentencijos is a controller, autoriai is a method, 429(param) is marselis prustas ID. I want to remove this param (ID) but don't know how. Full url should look like this: http://domain/sentencijos/autoriai/marselis-prustas Can someone help me? Thanks 回答1: Replace slug with id in your URLs. This is how it works: 1) I'm assuming here a product website flow. 2) For a particular product page, displaying the

would lazy-loading img src negatively impact SEO

别来无恙 提交于 2019-12-18 06:01:51
问题 I'm working on a shopping site. We display 40 images in our results. We're looking to reduce the onload time of our page, and since images block the onload event, I'm considering lazy loading them by initially setting img.src="" and then setting them after onload. Note that this is not ajax loading of html fragments. the image html along with the alt text is present. it's just the image src is deferred. Does anyone have any idea as to whether this may harm SEO or lead to a google penalty box

Avoid crawling part of a page with “googleoff” and “googleon”

我们两清 提交于 2019-12-18 05:43:42
问题 I am trying to tell Google and other search engines not to crawl some parts of my web page. What I do is: <!--googleoff: all--> <select name="ddlCountry" id="ddlCountry"> <option value="All">All</option> <option value="bahrain">Bahrain</option> <option value="china">China</option> </select> <!--googleon: all--> After I uploaded the page, I noticed that search engines are stilling rendering elements within the googleoff markup. Am I doing something wrong? 回答1: "googleon" and "googleoff" are

浅谈vue单页面seo问题

流过昼夜 提交于 2019-12-18 05:30:14
最近做项目的时候,被要求做seo,由于项目已经开发完毕,且只需首页做seo,所以考虑再三,决定用prerender-spa-plugin结合vue-meta-info来实现首页的seo。 如果你的页面是动态的,比如通过v-for或v-if等来动态渲染的dom,则不适合此方法,可以考虑官方的 SSR 。 代码已更新到github, 点击查看 言归正传,第一步:安装prerender-spa-plugin,vue-meta-info npm install prerender-spa-plugin vue-meta-info --save 如果安装失败,使用淘宝镜像试试 cnpm install prerender-spa-plugin vue-meta-info --save 第二部:在你的项目目录下找到该文件 build/webpack.prod.conf.js,添加如下代码 const PrerenderSpaPlugin = require('prerender-spa-plugin') new PrerenderSpaPlugin( //将渲染的文件放到dist目录下 path.join(__dirname, '../dist'), //需要预渲染的路由信息 [ '/index','/about' ], { //在一定时间后再捕获页面信息,使得页面数据信息加载完成

Is it practically good to put JS files at the bottom of webpage?

非 Y 不嫁゛ 提交于 2019-12-18 04:51:07
问题 It is widely recommended that JS files should be put at the bottom of page to allow html codes to be loaded first. In this case, visitors will see something when waiting for full load of the page. However, I think this is disadvantageous for these reasons: Modern design mainly depends on JS. This means before loading JS, the page will look ugly. If interrupting the connection during the load (not loading JS at all), visitors will miss some of the website features (probably very important);

Reusing backbone views/routes on the server when using Backbone.js pushstate for seo/bookmarking

淺唱寂寞╮ 提交于 2019-12-18 02:49:05
问题 I'm doing some due diligence on backbone for a single page app and wonder if it is possible to re-use the same views/routes from the client on the server side, so that when google visits a pushstate URL, or it is accessed directly, the server can generate the exact same HTML that would be generated by backbone in the client. It would be a pain to have to maintain two separate sets of views/routes, one on the client and one on the server. I have seen the backnode project on github however this

How do I return a HTTP 404 status code from a SPA?

情到浓时终转凉″ 提交于 2019-12-18 02:38:10
问题 I saw a few questions like this around (like this one), but none of them tackle the problem specifically. So Google is now supporting SPAs and most web browsers do HTML5 pushState. My AngularJS (but could be any JS thing) website is using the URL to determine an API route. It then performs the API call and then renders the content accordingly. However, right now Google tagged this site as "being hacked" since EVERY URL returns an HTTP 200 status code (example.com/get-free-viagra included).

What is the difference between <s> and <del> in HTML, and do they affect website rankings?

孤街浪徒 提交于 2019-12-18 01:43:05
问题 What is the difference between <s> and <del> ? I have read here that there are semantic differences between <b> and <strong> , does this apply to <s> and <del> ? Additionally, how are such semantic differences, if any, interpreted by search engines and what affect would they have on rankings? Are there any other tags that affect search rankings? 回答1: <s> and <del> both still exist in the HTML specification. The <del> element represents a removal from the document. The <s> represents contents