Difference between pages "SEO" and "Funtoo Linux Localization/pt-br"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m (update some things)
 
 
Line 1: Line 1:
[https://en.wikipedia.org/wiki/Search_engine_optimization Seo] stands for search engine optimization.  This page is dedicated to helping improve your page rank on search engines.
== Definir Idioma Padrão ==


=== Domains ===
No Funtoo, há dois arquivos de configuração responsáveis suas configurações de idioma: <code>/etc/locale.gen</code> e <code>/etc/env.d/00basic</code>. O primeiro arquivo contém somente en_US.UTF-8 locale habilitado. O ultimo é um arquivo padrão embarcado que vem a partir do stage3 e responsável pelo en_US.UTF-8 locale system-wide. não recomendado editar.
When selecting a domain name, try to choose a short domain name, omitting words like "the" the longer the url, the harder it is to remember, and this affects page rank.
Os passos a seguir lhe guiarão através do processo de editar o idioma padrão do sistema (default system language), utilizando o francês canadense como um exemplo.
Primeiro você terá que editar <code>/etc/locale.gen</code>:
<console>
# ##i##nano -w /etc/locale.gen
</console>
Especifique sua localidade preferida com o formato de caracter acompanhante (Você vai preferir principalmente UTF-8):
{{fancynote|É recomendado manter o en_US.UTF-8 locale pré-configurado com um fallback.}}
{{file|name=/etc/locale.gen|body=
en_US.UTF-8 UTF-8
fr_CA.UTF-8 UTF-8
}}
Para determinar uma localidade apropriada para o seu sistema, você deve dar uma olha em <code>/usr/share/i18n/SUPPORTED</code> para a lidta padrão de combinações suportadas  ou verifique o diretório <code>/usr/share/i18n/locales/</code> para uma lista de valores válidos.
{{fancywarning|Lhe é altamente aconcelhado usar ''ao menos uma'' localidade UTF-8 desde que algumas aplicações possam exigi-la.}}


http://www.yes.com is excellent
Now, those locales need to be generated:
http://www.nooooooooooooooo.com is bad....
<console>
# ##i##locale-gen
##g##*##!g## Generating 2 locales (this might take a while) with 1 jobs
*  (1/2) Generating en_US.UTF-8 ... [ ok ]
*  (2/2) Generating fr_CA.UTF-8 ... [ ok ]
##g##*##!g## Generation complete
</console>


Domain registration duration impacts SEO, if you intend to have the site a long time, register several years rather than a short period of time, as this will improve SEO.
Once done, you can apply your locale settings system-wide. First display all available options:
<console>
$ ##i##eselect locale list
##b####g##Available targets for the LANG variable:
  ##b##[1]##!b##  C
  ##b##[2]##!b##  POSIX
  ##b##[3]##!b##  fr_CA.utf8
  ##b##[4]##!b##  en_US.utf8 ##bl##*
  ##b##[ ]##!b##  (free form)
</console>
The blue star indicates the current default system locale. You can now change it according your wishes:
<console>
# ##i##eselect locale set 3
Setting LANG to fr_CA.utf8 ...
Run ". /etc/profile" to update the variable in your shell.
</console>
Alternatively, you can set the default locale manually. This file should be created first with your prefered editor:
{{file|name=/etc/env.d/02locale|body=LANG="fr_CA.utf8"}}
You can verify your actions using:
<console>
$ ##i##eselect locale show
##b####g##LANG variable in profile:
  ##b##fr_CA.utf8
</console>


=== Canonical Urls ===
For an immediate effect it is required to reload the environment:
your sites urls should have 1 or the other url re-writing, and 301 permanent redirecting so search engines do not see duplicate content. You are not penalized for url length by adding a www. subdomain.
<console>
# ##i##env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...
</console>
Congratulations! You have successfully set up your default language on Funtoo.


{{console|body=###i## curl -I http://funtoo.org/Welcome}}
== Portage Settings ==


{{console|body=###i## curl -I http://www.funtoo.org/Welcome}}
Portage uses a special variable <code>LINGUAS</code> that defines what localizations/translations get installed by default. By default, <code>LINGUAS</code> in unset, which will result in ''all'' available localizations being installed by Portage.


=== php? ===
It is possible to customize the setting of <code>LINGUAS</code> by setting it in <code>/etc/make.conf</code>:
Question marks are bad.  Most search engines freak out about indexing anything past a ? so use url rewrites to remove index.php? and leave just site.com/Main_Page


=== www ===
<console>
# ##i##LINGUAS="en_US zh_CN"
</console>


domain.org should have url rewrites, and be rewritten to www.domain.org for the purpose of wildcard ssl certificates, and cookie free domains.
The <code>LINGUAS</code> variable should use spaces between each localization name.
== Read Your Language ==


=== 301 ===
A newly installed Funtoo Linux does not able to read all the languages. You want to read the stuff, say, in Mozilla Firefox. You need to install fonts - A good sign that you have not installed the proper fonts is that the following characters appear as boxes with numbers inside: 日本語フォント


Some users when referring to your web site will post links as domain.org, or www.domain.org.  using a 301 redirect on one or the other will have search engines treat both as one singular domain.  Dns 301 redirect domain.org to www.domain.org
Check if you have your language installed (Chinese) by using the <tt>fc-list</tt> command from the <tt>media-libs/fontconfig</tt> ebuild:


==== Url spaces ====
<console>
You should prefer - over _ to represent spaces.  MediaWiki is flawed in design preferring _ over -.  This is an older SEO problem, yet it still persists in affecting your page ranking.  [[web-server-stack]] is an example of an SEO friendly url with spaces.
# ##i##fc-list :lang=zh
</console>


=== Server Speed ===
If you are lucky, the right font will be installed, and your apps will also be able to use Chinese as the default language. But in case you not have the right font installed in this way, you need to install them manually.
How fast your page loads significantly impacts seo.  Installing a caching reverse proxy, and testing that it hits close to 100% of the time is a good idea.  It prevents your server from rebuilding pages, hitting the processor, and also speeds up page delivery to move the bottle neck from the php building to the internet connection speed. see: {{Package|www-servers/varnish}} & [[Web-server-stack#Benchmarking]]


=== Cookie Free Domains ===
For Japanese:
Cookies force static content to be reloaded.  Static content can be hosted on an alternate subdomain in most cases.  example: static.google.com


=== CDN ===
<console>
Use of a CDN for static content will speed things up, and distribute load to client's geographically local nodes.  since a cdn is external to the website you don't have to worry about cookies forcing a cache to reload the content.
# ##i##emerge media-fonts/kochi-substitute
</console>


=== CSS & JS Minification ===
For Chinese:
Minified CSS & JavaScript is simply your file with all unnecessary spaces, and carriage returns removed.
<console>
# ##i##emerge media-fonts/arphicfonts
</console>


=== CSS & JS Positioning ===
For Korean:
CSS insertion needs to happen at the top of your web pages source.  JavaScript needs to be loaded last, so that goes at the bottom of your web pages source.


=== Avoiding Inline Styles ===
<console>
CSS has several forms but inline styles should be avoided.  Prefer an external CSS file, preferably distributed by a cdn.
# ##i##emerge media-fonts/baekmuk-fonts
</console>
== Keymap ==


=== Meta Description/Keywords/Tags ===
Funtoo Linux defaults to a US English keyboard. If you are using another type of keyboard, edit <tt>/etc/conf.d/keymaps</tt> and set keymap to your keyboard model. For example, cf for French Canadian keyboard, fr for French Azerty.
Meta information is parsed directly by search engines. with these in place they will be displayed rather than the initial text of your canonical landing page.


==== Dublin core ====
<console>
Dublin core is a metadata system that produces details for search engines to discover such as authors, & publication dates.  many sites generate this meta information dynamically.
# ##i##nano -w /etc/conf.d/keymaps
</console>
== Input Method ==


=== Links ===
ibus is an Intelligent Input Bus for Linux.
Posting links around about your site is ok so long as it is organic, and not spammy.  addthis share widgets improve SEO as they produce many backlinks that are not a bot dumping anywhere, and everywhere.  addthis produces twitter/facebook/g+/redit etc share links, and has an analytic service.


Linking to high quality trusted sites helps, high quality trusted sites linking back helps.
<console>
Linking to low quality untrusted sites hurts, low quality untrusted sites linking back hurts.
# ##i##emerge -av ibus
</console>


=== SiteMaps & robots.txt ===
You also need to install language table for ibus (Chinese)
Sitemaps generate xml pages that tell crawlers about your sites content pages, and robots.txt tell crawlers about pages they're not allowed to index.  In a few iterations ill look up how to make a robots that allows everything, as if its not even there, and an external site map generating service.


=== Analytics ===
<console>
Analytics tell you information about your websites users.  Some analytics services enhance seo, others are just informative.
# ##i##emerge -av ibus-table-chinese
http://www.google.com/analytics/
</console>
https://www.quantcast.com


piwik is server side analytics.
[[Category:Install|Localization]]
 
=== Webmaster Tools ===
Sign up for webmastering services provided by search engines.  Bing and Yahoo are bundled together now.
 
*https://www.google.com/webmasters/
*https://webmaster.yandex.com/
*http://www.bing.com/toolbox/webmaster
 
=== Establishing Trust ===
Encourage users to tell the internet your website is trusted.
*https://www.mywot.com
 
===testing, and evaluating===
==== free analysis ====
* http://www.webrankpage.com/
* http://www.seomastering.com/ (shows estimated page value in USD)
* http://seositecheckup.com/ (throttled to 1 check every 30 minutes)
* http://www.site-seo-analysis.com/
* http://www.seoworkers.com/tools/analyzer.html
 
==== free with required registration ====
* http://www.site-analyzer.com/
*http://www.wpromote.com/seo/seo-audit-tool (shows which pages are ranked)
 
==== pay with free trial ====
free 1 site per week testing
* http://www.woorank.com/
 
==== unsorted goodies ====
*http://www.webpagetest.org/
*http://www.seocentro.com/tools/seo/seo-analyzer.html
*http://www.seoptimer.com/
*https://www.found.co.uk/seo-tool/
*https://zadroweb.com/seo-auditor/
*https://marketing.grader.com/
*http://www.alexa.com/
 
 
=== Malware & Bad Link Scanning Services ===
*http://www.quttera.com/home
*https://app.webinspector.com/
*http://scanurl.net/
*http://safeweb.norton.com/
*http://www.avgthreatlabs.com/website-safety-reports/
*http://www.penguinscan.com/

Revision as of 13:20, February 4, 2015

Definir Idioma Padrão

No Funtoo, há dois arquivos de configuração responsáveis suas configurações de idioma: /etc/locale.gen e /etc/env.d/00basic. O primeiro arquivo contém somente en_US.UTF-8 locale habilitado. O ultimo é um arquivo padrão embarcado que vem a partir do stage3 e responsável pelo en_US.UTF-8 locale system-wide. não recomendado editar. Os passos a seguir lhe guiarão através do processo de editar o idioma padrão do sistema (default system language), utilizando o francês canadense como um exemplo. Primeiro você terá que editar /etc/locale.gen:

root # nano -w /etc/locale.gen

Especifique sua localidade preferida com o formato de caracter acompanhante (Você vai preferir principalmente UTF-8):

   Note

É recomendado manter o en_US.UTF-8 locale pré-configurado com um fallback.

   /etc/locale.gen
en_US.UTF-8 UTF-8
fr_CA.UTF-8 UTF-8

Para determinar uma localidade apropriada para o seu sistema, você deve dar uma olha em /usr/share/i18n/SUPPORTED para a lidta padrão de combinações suportadas ou verifique o diretório /usr/share/i18n/locales/ para uma lista de valores válidos.

   Warning

Lhe é altamente aconcelhado usar ao menos uma localidade UTF-8 desde que algumas aplicações possam exigi-la.

Now, those locales need to be generated:

root # locale-gen
 * Generating 2 locales (this might take a while) with 1 jobs
 *  (1/2) Generating en_US.UTF-8 ... [ ok ]
 *  (2/2) Generating fr_CA.UTF-8 ... [ ok ]
 * Generation complete

Once done, you can apply your locale settings system-wide. First display all available options:

user $ eselect locale list
root ##b##Available targets for the LANG variable:
  [1]   C
  [2]   POSIX
  [3]   fr_CA.utf8
  [4]   en_US.utf8 *
  [ ]   (free form)

The blue star indicates the current default system locale. You can now change it according your wishes:

root # eselect locale set 3
Setting LANG to fr_CA.utf8 ...
Run ". /etc/profile" to update the variable in your shell.

Alternatively, you can set the default locale manually. This file should be created first with your prefered editor:

   /etc/env.d/02locale
LANG="fr_CA.utf8"

You can verify your actions using:

user $ eselect locale show
root ##b##LANG variable in profile:
  fr_CA.utf8

For an immediate effect it is required to reload the environment:

root # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...

Congratulations! You have successfully set up your default language on Funtoo.

Portage Settings

Portage uses a special variable LINGUAS that defines what localizations/translations get installed by default. By default, LINGUAS in unset, which will result in all available localizations being installed by Portage.

It is possible to customize the setting of LINGUAS by setting it in /etc/make.conf:

root # LINGUAS="en_US zh_CN"

The LINGUAS variable should use spaces between each localization name.

Read Your Language

A newly installed Funtoo Linux does not able to read all the languages. You want to read the stuff, say, in Mozilla Firefox. You need to install fonts - A good sign that you have not installed the proper fonts is that the following characters appear as boxes with numbers inside: 日本語フォント

Check if you have your language installed (Chinese) by using the fc-list command from the media-libs/fontconfig ebuild:

root # fc-list :lang=zh

If you are lucky, the right font will be installed, and your apps will also be able to use Chinese as the default language. But in case you not have the right font installed in this way, you need to install them manually.

For Japanese:

root # emerge media-fonts/kochi-substitute

For Chinese:

root # emerge media-fonts/arphicfonts

For Korean:

root # emerge media-fonts/baekmuk-fonts

Keymap

Funtoo Linux defaults to a US English keyboard. If you are using another type of keyboard, edit /etc/conf.d/keymaps and set keymap to your keyboard model. For example, cf for French Canadian keyboard, fr for French Azerty.

root # nano -w /etc/conf.d/keymaps

Input Method

ibus is an Intelligent Input Bus for Linux.

root # emerge -av ibus

You also need to install language table for ibus (Chinese)

root # emerge -av ibus-table-chinese