Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Update with some changed in file.
  • Loading branch information
leonardo403 committed Mar 21, 2015
1 parent d0f8b1a commit 10b4c46
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Translations/Portuguese-BR/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ O que estamos fazendo aqui é principalmente a coleta trechos úteis de todo o i
## Rewrite and Redirection
Nota: Presume-se que você tem `mod_rewrite` instalado e habilitado.

### Forçar www
### Force www
``` apacheconf
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
```

### Forçar www de forma genérica
### Force www de forma genérica
``` apacheconf
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
Expand All @@ -71,15 +71,15 @@ RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
```
Isso funciona para _any_ domain. [Source](https://stackoverflow.com/questions/4916222/htaccess-how-to-force-www-in-a-generic-way)

### Forçar non-www
### Force non-www
It's [still](http://www.sitepoint.com/domain-www-or-no-www/) [open](https://devcenter.heroku.com/articles/apex-domains) [for](http://yes-www.org/) [debate](http://no-www.org/) se www ou non-www é o caminho a percorrer, por isso, se acontecer de você ser um fã de domínios descalços, aqui você vai:
``` apacheconf
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
```

### Forçar non-www de forma genérica
### Force non-www de forma genérica
``` apacheconf
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.
Expand All @@ -88,7 +88,7 @@ RewriteCond http%1://%{HTTP_HOST} ^(https?://)(www\.)?(.+)$
RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L]
```

### Forçar HTTPS
### Force HTTPS
``` apacheconf
RewriteEngine on
RewriteCond %{HTTPS} !on
Expand All @@ -102,14 +102,14 @@ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
```

### Forçar HTTPS atrás de um Proxy
### Force HTTPS atrás de um Proxy
Útil se você tiver um proxy na frente do seu servidor a realização de terminação TLS.
``` apacheconf
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
```

### Forçar Trailing Slash
### Force Trailing Slash
``` apacheconf
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
Expand Down Expand Up @@ -436,7 +436,7 @@ ErrorDocument 401 http://error.example.com/mordor.html
ErrorDocument 404 /errors/halflife3.html
```

### Força Downloading
### Force Downloading
Às vezes você quer forçar o navegador para baixar algum conteúdo em vez de exibi-lo.
``` apacheconf
<Files *.md>
Expand Down

0 comments on commit 10b4c46

Please sign in to comment.