Skip to content

Instantly share code, notes, and snippets.

View xabikip's full-sized avatar
🐱
lear

Xabi xabikip

🐱
lear
View GitHub Profile
@miguelfrmn
miguelfrmn / validator.php
Last active April 23, 2019 17:35
Spanish Validations
<?php
/*
Spanish information validator
*/
class Validator {
static function validarDni($cif) {
//Copyright ©2005-2008 David Vidal Serra. Bajo licencia GNU GPL.
//Este software viene SIN NINGUN TIPO DE GARANTIA; para saber mas detalles
//puede consultar la licencia en http://www.gnu.org/licenses/gpl.txt(1)
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
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/