How does Stack Overflow (and other web sites) remove the \'www\' prefix when it\'s entered as part of a URL?
Is it a redirect, a rewrite or something else entirely?<
You can do it several ways, using mod_rewrite and redirecting is my favorite. Something like this:
RewriteEngine On RewriteCond %{HTTP_HOST} ^www.cuenca.co$ [NC] RewriteRule ^(.*)$ http://cuenca.co/$1 [R=301,L]