I wish to, during my .htaccess, redirect the consumer to a different url based on exactly what the user accesses.

Within this situation, http://example.com/awesome.com and http://awesome.com is identical site, and when the consumer is being able to access http://example.com/awesome.com, I would like her or him to become rerouted to http://awesome.com.

Is achievable?

Edit: With the aid of solutions, I emerged with this particular working solution:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^awesome.com$
RewriteRule ^(.*)$ http://awesome.com/$1 [R=301]

Unsure of about .htaccess, however, you could only use server code in your 404 page to redirect them properly by doing this you can collect stats, setup a plugin, or whatever other actions you might like to take.

.htaccess is all about authorization, not redirection. I suggest you consider the redirection support for Apache (or whatever web server you are using), the industry far better fit with this problem and merely make certain your .htaccess/authorization is using the target.

you should use mod_rewrite (apache2 module)

this is actually the .htaccess which i use to be able to redirect from the old domain to my brand new one (and keep the hyperlink strcture e.g www.domain1.com/link/linkb.html becomes www.domain1.gr/link/linkb.html)

RewriteEngine On
RewriteCond %(www\.)?domain1\.com$ [NC]
RewriteRule .* http://www.domain1.gr%{REQUEST_URI} [R=301,L]

google mod_rewrite to learn more (syntax etc)

This rule must do it:

RewriteRule ^awesome\.example(/.*)?$ http://www.awesome.example$1 [R=301,L]

Look into the Redirect &lifier RedirectMatch options in apache. For straightforward cases, like yours it's simplier than the usual mod_rewrite.

Redirect /awesome.com http://ww.awesome.com


 Redirect permanent /awesome.com http://ww.awesome.com

Now, if example.com and awesome.com are on a single apache server and same virtualhost you are maybe mising the named bases virtualhost things and you are maybe attempting to make something really more complicated than the usual simple named base virtualhost definition.