Basically have two domains:

altcognito.com

and say I have got another following domain:

alt-cognito.com

What is the "best" redirect (will i use permanent etc...?) I wish to claim that altcognito.com may be the "correct" website.

(naturally, these are merely good examples)

If you wish to state that "it is best to visit foo rather than bar," you'll need a 301 redirect (that you simply use your front-finish server). See http://world wide web.google.com/support/website owners/bin/answer.py?hl=en&answer=93633

A 302 (temporary) redirect ought to be used in instances where you cannot serve a webpage, but expect it to return later. Regrettably, it is the redirect that you will get from JSP forward.

A customer-side (meta refresh or javascript) redirect ought to be prevented whenever you can.

Edit per comment: here is a connect to the Apache paperwork for setting up a lasting (or temporary) redirect: http://httpd.apache.org/paperwork/2.2/mod/mod_alias.html#redirect

<VirtualHost *:80>

    ServerAlias altcognito.com

    ServerAlias alt-cognito.com

    ServerAlias world wide web.alt-cognito.com

    RedirectMatch permanent ^/(.*) http://world wide web.altcognito.com/$1

</VirtualHost>

The Three domain names (world wide web and non-world wide web) will 301 redirect for your primary domain world wide web.altcognito.com