Skip to content

Instantly share code, notes, and snippets.

View joelsantosbr's full-sized avatar
🎯
Focusing

Joel Santos joelsantosbr

🎯
Focusing
  • Brazil
View GitHub Profile
@joelsantosbr
joelsantosbr / cloudSettings
Last active March 23, 2021 11:20
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-03-23T11:20:30.312Z","extensionVersion":"v3.4.3"}
@joelsantosbr
joelsantosbr / .htaccess
Created May 22, 2018 16:30 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
{
"categorias": [
{
"titulo": "Consumidor e Pequenas Causas",
"titulo_publico": "Consumidor e Pequenas Causas",
"assuntos": [
{
"titulo": "Nome sujo",
"titulo_publico": "Nome sujo",
"questoes": [
@joelsantosbr
joelsantosbr / laravel.htaccess
Created January 12, 2018 12:21
Redirecionar Laravel para pasta Public e com HTTPS
# Redireciona para o HTTPS independente do domínio
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]
# Remove www. no prefixo do domínio
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,QSA,L]
# Redirecionar para pasta public
RewriteEngine On