Not enough information. How is the site hosted? Do you have access to the name server? htaccess? Will you be using the same IP? Same host? So the the answer is probably; if not maybe; but it could also be depends.
You must have officially enrolled the domain name that you will be changing your account to. In the event that you haven't effectively enlisted the domain name, space enrollments through InMotion Hosting are $14.99 per area every year.
Then you will need to do it less efficiently using the .htaccess in the root directory of the old site: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !newdomain.com$ [NC] RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301] Code (markup):
COBOLdinosaur I found following link: http://wpguide.org/move-wordpress-to-new-domain/ Should I follow this procedure?
Oh, It is Wordpress? In that case I guess you can follow the advice. With WP crap I generally recommend throwing it away and writing a real site. I have absolutely no tolerance for that kind of junk, and very little respect for those who write most of them.
If you have a wordpress site you will have to change the domain name in the options of the wordpress site first. That will allow wordpress to recognize that it's under a new domain name. The rewrite rules that COBOLDinosaur suggested will work for you to redirect anyone that goes to the old domain to the new domain, however it's crucial that wordpress is configured to use the new domain name. If you use a 301 Redirect that will be a permeant redirect meaning it will be cached in the browser and if you change the domain again it won't redirect to the new domain if someone has already visited the site. It will continue to redirect to the old domain that was previously specified by the 301 Redirect. Redirecting new posts only to a new domain with wordpress will be difficult. You may check to see if there is a plugin already developed for that type of function, wordpress does not offer that type of functionality by itself.
Okay, so firstly you will need to point the new domain to you your current website. This is easy and i'm guessing that you have already figured this out. The problem you have is that clicking on an old link will not take the user to the relevant page. In this scenario, you can use a wildcard redirect which will match everything after the "domain.com/" so "olddomain.com/1/link/today" will automatically redirect to "newdomain.com/1/link/today" I notice people have asked what kind of hosting you have, which you need to mention for more detailed instructions or best methods. Assuming that you have general shared hosting, everything that you are asking can be achieved very easily through cpanal, also with some minor configuration necessary in your WP install backend.