This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change as you need | |
# Rename this file to .htaccess and put into your website's DocumentRoot folder. | |
# It needs Rewrite module enabled in your system | |
# Other HTTP status codes works as well, as 302, and so on... | |
Redirect 301 /some_folder http://my_redirected_website.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Sets the http header to 301 - Good for search engines | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: http://mynewwebsite.com"); | |
exit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gera uma cor aleatória em hexadecimal | |
function gera_cor(){ | |
var hexadecimais = '0123456789ABCDEF'; | |
var cor = '#'; | |
// Pega um número aleatório no array acima | |
for (var i = 0; i < 6; i++ ) { | |
//E concatena à variável cor | |
cor += hexadecimais[Math.floor(Math.random() * 16)]; | |
} |
NewerOlder