server side
.htaccess redirect to a new domain
I post this little snippet because isn’t easy for me to found it. Here is.
[plain]RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.:]+\.)*oldwebsite\.com\.?(:[0-9]*)?$ [NC]
RewriteRule ^(.*)$ http://www.preferredwebsite.net/$1 [R=301,L][/plain]
Thanks Wikipedia!
Ajax logins: why?
I’m starting this new blog with this little suggestion: avoid ajax logins.
Ajax it’s really cool and handy, I know, but for a login page only can be useful in very particular cases. In the rest, only helps to save time to the hackers when do brute force on your site.
How works an ajax login?
The users fills [...]