seo

Best HTML5 Semantics for SEO article and section?

谁说胖子不能爱 提交于 2019-12-23 19:19:14
问题 This question is in regards to the article section and aside tags as it relates to best SEO practices. I've seen some tutorials teach that you should place an article tag and inside the article tag various section tags. However some books I've read have it the other way around and place sections and nested in them are article tags. Which of the two methods is the best, for the best SEO results and why? Obviously our job is to not only give the consumer the best looking site, but also a site

How to use C# encode and decode 'Chinese' characters

梦想的初衷 提交于 2019-12-23 18:44:42
问题 In my ASP.NET MVC application i am using Chinese Category Name, it was displayed as %E8%82%B2%E5%84%BF in IE's URL address, but the actual value is '育儿'. I want to know how can I convert '育儿' into %E8%82%B2%E5%84%BF in C# and how can I convert it back, too. Is it possible display '育儿' in the URL link directly? Will it be good for SEO? 回答1: The text displayed in IE's address bar is the URL encoded form of the hex version of those characters. The hex version of '育儿' encoded in UTF-8 is

动态url、静态url和伪静态url的详细讲解

↘锁芯ラ 提交于 2019-12-23 17:59:52
关于url的动态、静态、伪静态,很多站长朋友,尤其是新站长一直搞不清楚。网上的许多解释又语焉不详,下面子画SEO就作详细的讲解下。 我们说url的动态、静态、伪静态三种形式,其实从严格分类上来说,伪静态也是动态的一种,只是表现形式为静态。 动态页面的特征: 1、以ASP、PHP、JSP、ASP.net、Perl、或CGI等编程语言制作的; 2、不是独立存在于服务器上的网页文件,只有当用户请求时服务器才返回一个完整的网页; 3、内容存在于数据库中,根据用户发出的不同请求,其提供个性化的网页内容; 4、内容不是存在于页面上,而是在数据库中,从而大大降低网站维护的工作量。 静态页面的特征是: 1、静态页面的URL链接是以.html、htm、.shtml、.xml为链接后缀; 2、静态页面是存在于服务器上的一个文件,每个网页都是一个独立的文件; 3、客户端加载静态页面时,并没有操作数据库,只是直接提取一个文件。 静态、动态、伪静态页面的优缺点: 1、动态页面 优点:空间使用量非常小,一般几万条数据的网站,可能只有几M的文件大小,而使用静态页面少则十几M,多则几十M。因为数据是从数据库里面调用而来,所以如果要更改某些数值,直接更改数据库,那么所有的动态页面,就会自动更新了。这一点相比静态页面好处就大很多了。 缺点:用户访问速度较慢,为什么会访问动态页面较慢呢

Breadcrumb microdata help

為{幸葍}努か 提交于 2019-12-23 17:40:31
问题 I'm trying to help Google generate appropriate breadcrumb details for my website. I am currently using this as the breadcrumb: <div id="breadcrumb"> <span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="http://www.radonsystems.net" class="crumb" rel="up" itemprop="url"> <span itemprop="title">Home</span> </a> <span class="arrow"> <span>»</span> </span> </span> <span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org

URL Rewrite Filter not working with query parameters containing special characters

风流意气都作罢 提交于 2019-12-23 17:06:27
问题 I'm using URL Rewrite Filter to forward some ugly URLs to pretty Urls. Referring to Conditions Based On URL Parameters, I’ve done something using UrlRewriteFilter which is actually required to make my site Google crawl-able. Here’s how it goes. <rule enabled="true"> <note> The rule means that requests to /test/status/ will be redirected to /rewrite-status the url will be rewritten. </note> <condition type="parameter" name="_escaped_fragment_" operator="equal">(apple|kiwi|orange)</condition>

How to show page title on Google with Angular Precomposition?

淺唱寂寞╮ 提交于 2019-12-23 16:25:19
问题 Based on superluminary response here I've set up an Angular 1 app without Hashbangs and html5Mode(true) and rely on Google to execute javascript. The page is being indexed by Google but dynamic titles and description tags are not. My index.html head is the following: <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <base href="/"> <meta name="author" content="me"> <meta name="robots" content="index,follow"> <title ng-bind="meta.title">Temp

Google hreflang language confusion: Do I have to add hreflang for the page ITSELF?

六眼飞鱼酱① 提交于 2019-12-23 16:17:35
问题 On Google's hreflang documentation, in the 2-language example, it says: Imagine you have an English language page hosted at http://www.example.com/, with a Spanish alternative at http://es.example.com/. You can indicate to Google that the Spanish URL is the Spanish-language equivalent of the English page in one of three ways: HTML link element in header. In the HTML <head> section of http://www.example.com/, add a link element pointing to the Spanish version of that webpage at http://es

Display Google Keywords that brought a user to the site

房东的猫 提交于 2019-12-23 15:41:06
问题 I am looking to display something like: Hello, you've reached this site by looking for [google keyword(s)] I'm pretty sure I've seen this done before but I am having troubles figuring out how to grab the keywords that were used to lead a user to my site. Anyone know the answer? 回答1: You need to get the referring URL and then strip out everything for the "q" query string. This will give you the query that was used to get you to your page. 回答2: Using the referrer (http://www.netmechanic.com

How does tiny url work

 ̄綄美尐妖づ 提交于 2019-12-23 12:22:54
问题 I have been wondering how tiny url works. I would like to develop something similar for my site, but as most people, I use GUIDs for ids. When an object is created, should I then generate a 10 character random string to use as public id, or is there a smarter approach? Example of old url: www.mysite.com/default.aspx?userId={id} Example of new url: www.mysite.com/pwzd4r9niy 回答1: You can use any kind of random string generator or GUID for this. I don't think there is a much smarter approach.

.htaccess remove index.php and hide parameter key from URLs

橙三吉。 提交于 2019-12-23 10:28:52
问题 I have the following URL www.example.com/index.php?tag= xxx I want to make it like the following using .htaccess www.example.com/xxx I done it with this code: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+?)/?$ /index.php?tag=$1 [L,QSA] SO if I input this URL: www.example.com/index.php?tag=1000 it be redirect to: www.example.com