seo

Ajax Crawling on Google App Engine - Does HtmlUnit work?

风格不统一 提交于 2019-12-05 15:27:36
http://code.google.com/web/ajaxcrawling/docs/html-snapshot.html Does HtmlUnit work on AppEngine? If not, are there any other ways to make my GWT app crawlable by search engines? A patch for HtmlUnit to work on GAE is in progress. HtmlUnit's bug tracker issue 2962074 discusses making HtmlUnit work on GAE, and provides a preliminary patch for accomplishing this. it doesn't work on the last GAE version (even after patch applying) to check the post http://groups.google.com/group/google-appengine/browse_thread/thread/28a9f9737b1b26b5 来源: https://stackoverflow.com/questions/3285181/ajax-crawling-on

Best Permalinking for Rails

只谈情不闲聊 提交于 2019-12-05 15:02:56
What do you think is the best way to create SEO friendly URLs (dynamically) in Rails? Override the to_param method in your model classes so that the default numeric ID is replaced with a meaningful string. For example, this very question uses best-permalinking-for-rails in the URL. Ryan Bates has a Railscast on this topic . ActiveSupport has a new method in Rails to aid this - String#parameterize. The relevant commit is here ; the example given in the commit message is "Donald E. Knuth".parameterize => "donald-e-knuth" In combination with the to_param override mentioned by John Topley, this

Is multiple description meta tags valid?

岁酱吖の 提交于 2019-12-05 14:04:26
问题 Is it valid to define multiple meta description with different languages? Is this valid? <meta name="Description" lang="en_US" content="Something in here" /> <meta name="Description" lang="pt-BR" content="Algo aqui" /> <meta name="Description" lang="fo-BA" content="Foo bar" /> 回答1: It's not a good practice. Most probably the search engines will ignore them or even penalize you for spam. Anyway, why would you have multiple description meta on the same page? I don't really think that your page

易优CMS:小白学代码之notempty

£可爱£侵袭症+ 提交于 2019-12-05 13:33:55
【基础用法】 名称:notempty 功能:判断某个变量是否为空,可以嵌套到任何标签里面使用,比如:channel、type等 语法: {eyou:notempty name='$eyou.field.seo_title' /} {$eyou.field.seo_title} {/eyou:notempty} 文件: 无 参数: name='' 变量名 底层字段: 无 【更多示例】 -------------------------------示例1-------------------------------- 描述:文档SEO标题不为空时,显示文档SEO标题;否则显示常规标题。 {eyou:notempty name='$eyou.field.seo_title' /} {$eyou.field.seo_title} <!-- seo标题不为空时,显示seo标题 --> {eyou:else /} {$eyou.field.title} <!-- 否则显示常规标题 --> {/eyou:notempty} ucms.com/plus/list.php?tid=40 文章来源:https://www.eyoucms.com/plus/list.php?tid=40 来源: https://www.cnblogs.com/wanghuan5258/p/11925761.html

Dynamic SEO-friendly URLs

人走茶凉 提交于 2019-12-05 13:13:01
I'd like to deploy dynamic URL's for my app in two ways: when viewing available vehicle, I get a link like: http://www.url.com/2006-Acura-MDX-Technology-Package I also have a filter page, so here, the URL will change according to the filters selected like: http://www.url.com/2007-Nissan or http://www.url.com/2007-Nissan-Maxima and so on depending on the filters the user has chosen. What's the best way to go about this? EDIT 1 This now works def get_absolute_url(self): return u'%s-%s-%s-%s-%s' % (self.common_vehicle.year.year, self.common_vehicle.series.model.manufacturer, self.common_vehicle

Creating yii2 dynamic pages with url: www.example.com/pageName

雨燕双飞 提交于 2019-12-05 12:11:13
In my system, users need to have their profile pages. It is requested from me that these pages will be displayed in url like this: www.example.com/John-Doe www.example.com/Mary-Smith How to achieve these URLs in yii2 ? These John-Doe and Mary-Smith can be user usernames or profile names. For example I have field in user table called "name" and it will hold names "John Doe", "Mary Smith". Pay attention that I need SEO friendly URLs with "-" instead of blank spaces. URLs like this: www.example.com/profile/view?id=1 are not an option. www.example.com/John-Doe www.example.com/Mary-Smith I think

CakePHP Pagination - how to remove “page:” from url for better seo/cleaner URL

泄露秘密 提交于 2019-12-05 11:55:24
When I use CakePHP Paging I get an url like this: http://example.com/php/page:2 What do I have to change in the controller, the view and the routes.php to create a working url like this: http://example.com/php/2 Try this link: http://www.sakic.net/blog/changing-cakephp-pagination-urls/ Oh yes, now I see your question. Well you could do something like: function index($page){ $this->paginate = array('page'=>$page); $this->set('stuff', $this->paginate('YourControllerName')); } See here for more details: http://bakery.cakephp.org/articles/view/basic-pagination-overview-3 Also, of course you should

How to add canonical tag the pages that are derived from same link?

懵懂的女人 提交于 2019-12-05 11:41:51
I am using symfony 1.0.6. In my site I have two URLs. http://newe4s.com/news/articles/view/033/job-news-and-information and http://newe4s.com/news/articles/view/033/job-news-and-information/graduate/Connections-help-graduates-get-jobs Now, all the new articles are using same layout and both above links get same data from database. Google is reporting duplication of contents since it is getting multiple URLs for same content. When I searched for a solution, I got that using "canonical" structure fixes this issue which require <link rel="canonical" href="http://newe4s.com/news/articles/view/033

SEO and the use of !# in a url

折月煮酒 提交于 2019-12-05 10:57:02
I read somewhere about how you can create a website that loads each section of a page with AJAX while still providing SEO. It had something to do with the use of !# in a url. Similar to what twitter does. I can't seem to find anything about it anywhere. Does anyone know what I'm talking about? #! is called a "hashbang" and they are the root of all that is evil in web development. Basically, weak web developers decided to use #anchor names as a kludgy hack to get "web 2.0" things to work on their page, then complained to google that their page rank suffered. Google made a work around to their

Sitecore - rewrite “ ” to “-” in urls but still allow dashes as legal item names

元气小坏坏 提交于 2019-12-05 10:31:17
I've read a half dozen guides on rewriting spaces to something more friendly in Sitecore, but all of them rely on Sitecore's <encodeNameReplacements/> element which also reverses the replacement requiring "-" to be an illegal character for names. The problem with this is that the url of our application has a "-" in the hostname. Sitecore rewrites this resulting in a 404. Does anyone have ideas on how to do this url rewriting in Sitecore without relying on <encodeNameReplacements and still allowing "-" as a legal item name character? Our current best idea is to use something slighty more