seo

Replace umlaute (äüö) for SEO link in rails - best way

血红的双手。 提交于 2019-12-05 10:28:09
I'm using the permalink_fu plugin to create permalinks from titles. My problem is: If the title contains german characters, they are just replaced with '_'. What I need is something that replaces ä with ae ü with ue ö with oe I fount String.tr but the problem here is that it replaces 1 character with 1 replacement, so it would work for replacing é with e ø with o etc. Does anyone have a nice and clean solution for that? Thanks David Schmitt Use String.gsub() : "ich bin doch nicht blöd, mann!".gsub(/[äöü]/) do |match| case match when "ä" 'ae' when "ö" 'oe' when "ü" 'ue' end end Of course, the

Adding a hash prefix at the config phase if it's missing

若如初见. 提交于 2019-12-05 09:58:45
I am now integrating phantom in my Angularjs-based web application. This fine article says that I should call the $locationProvider.hashPrefix() method to set the prefix to '!' from SEO reasons(allow crawlers to intercept the _escaped_fragment component of the URL). The problem is that I haven't though of the earlier, and some of my URLs look as following: #/home . I though perhaps there is a way that I can implant this '!' char into the begging of the URL programmatically(in case it is not already there) at the config function of the APP, instead having to edit a lot of markup manually. I've

How to end up in google-search results within minutes?

会有一股神秘感。 提交于 2019-12-05 09:45:52
I have a classifieds website... When users post a new classified, it is automatically added to a dynamic sitemap (xml). The sitemaps are submitted to google about two months ago, via Webmaster Tools. Although some classifieds are indexed, it takes way too long for Google to index these. How does Google decide which sitemaps to index right away? One example is Stackoverflow questions; They show up in SERP:s almost directly. Is there anything I can do to make Google index and display my classifieds directly, or is the answer simply: Give it time...? actually the reason why stackoverflow's

SEO Friendly URL Rewriter Parameters

馋奶兔 提交于 2019-12-05 09:39:59
I would appreciate you advice on how to incorporate parameters into SEO Friendly URLs We have decided to have the "techie" parameters first, followed by the "SEO Slug" \product\ABC123\fly-your-own-helicopter much like S.O. - if the SEO Slug changes, or is truncated, or missing, we still have the Product and ABC123 parameters; various articles say that having such extra data doesn't harm SEO ranking. We need to have additional parameters; we could use "-" to separate parameters as it makes them look similar to the SEO Slug, or we could/should use something else? \product\ABC123-BOYTOY-2\boys

Link rel=“canonical”: Should different user guide versions use the same canonical url? [closed]

点点圈 提交于 2019-12-05 09:30:22
Closed . This question is opinion-based . It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed last year . Should 2 different versions of a user guide use a different canonical URL ? Documentation version 1.1.0.Final : <link rel="canonical" href="http://docs.foo.org/1.1.0.Final/index.html"> Documentation version 1.2.0.Final : <link rel="canonical" href="http://docs.foo.org/1.2.0.Final/index.html"> Or should 2 different versions of a user guide use the same canonical URL ?

How to remove a URL's trailing slash in a Rails app? (in a SEO view)

孤者浪人 提交于 2019-12-05 08:54:30
In order to avoid content duplication, I would like to avoid the pages of my site being accessible by several URLs (with or without trailing slash). Currently, the URLs catalog/product/1 and catalog/product/1/ lead to the same page. My goal is that the second URL redirect to the first (redirection 301, of course). None page of my site should be accessible with a trailing slash, except my home page / obviously. What is the best way to do this? Using .htaccess or routes.rb? How would you do that? NB: I'm developing with Ruby on Rails 1.2.3 I'd use Apache's mod_rewrite . Try this: RewriteEngine

robots.txt allow all except few sub-directories

点点圈 提交于 2019-12-05 07:52:28
I want my site to be indexed in search engines except few sub-directories. Following are my robots.txt settings: robots.txt in the root directory User-agent: * Allow: / Separate robots.txt in the sub-directory (to be excluded) User-agent: * Disallow: / Is it the correct way or the root directory rule will override the sub-directory rule? unor No, this is wrong. You can’t have a robots.txt in a sub-directory. Your robots.txt must be placed in the document root of your host. If you want to disallow crawling of URLs whose paths begin with /foo , use this record in your robots.txt ( http://example

Creating Canonical URLs including an id and title slug

感情迁移 提交于 2019-12-05 06:26:14
问题 I want to replicate what StackOverflow does with its URLs. For example: Hidden Features of C#? - (Hidden Features of C#?) or Hidden Features of C#? - (Hidden Features of C#?) Will Take you to the same page but when they return to the browser the first one is always returned. How do you implement the change so the larger URL is returned? 回答1: The way that I've handled this before is to have two routes, registered in this order routes.MapRoute( null, "questions/{id}/{title}", new { controller =

HTML Compression and SEO? [closed]

有些话、适合烂在心里 提交于 2019-12-05 06:21:03
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 . At work, we have a dedicated SEO Analyst who's job is to pour over lots of data (KeyNote/Compete etc) and generate up fancy reports for the executives so they can see how we are doing against our competitors in organic search ranking. He also leads initiatives to improve the SEO rankings on our sites by optimizing things as best we can. We also have a longstanding mission to decrease our page load time, which

易优CMS:【小白学标签】之empty的基础用法

对着背影说爱祢 提交于 2019-12-05 06:13:56
【基础用法】 名称:empty 功能:判断某个变量是否为空,可以嵌套到任何标签里面使用,比如:channel、type等 语法: {eyou:empty name='$eyou.field.seo_title' /} {$eyou.field.title} {/eyou:empty} 文件: 无 参数: name='' 变量名 底层字段: 无 【更多示例】 -------------------------------示例1-------------------------------- 描述:文档SEO标题为空时,显示文档常规标题;否则显示SEO标题。 {eyou:empty name='$eyou.field.seo_title' /} {$eyou.field.title} <!-- seo标题为空时,显示常规标题 --> {eyou:else /} {$eyou.field.seo_title} <!-- 否则显示seo标题 --> {/eyou:empty} 文章来源:https://www.eyoucms.com/doc/label/ 来源: https://www.cnblogs.com/wanghuan5258/p/11909655.html