Hello please help me i want to move(redirect) my old wordpresssite.com to wordpresssite.net i use dreamhost, I added wordpresssite.net and set directory same with wordpresssite.com. how i set httaccess. when visitor visit wordpresssite.com transfer to wordpresssite.net and then they also can see all my posts with .net domain, not .com anymore can u you help me ? thanks
Where is your .com domain registered? If it's GoDaddy, go to it's CP (in GoDaddy Domain Manager) and click on Domain Forwarding. From there select 301 redirect and enter the .net version. This will redirect all of the visitors from site.com to site.net and site.com/page to site.net/page. Now, the hosting issue. You just need to add the .net domain as an addon domain and move the files from the .com's directory to the .net's directory, just for safety. Then go to the Wordpress CP (or open it's config.php file, I don't have much experience with WP), there you should be able to enter your domain's root and change it from site.com to site.net, so your whole script does not get confused and list all the links as site.net/example-page instead of site.com/example-page. I hope I was helpful with that, if I was, feel free to give me a green rep, but that's not a mandatory.
I am not too much in .htaccess, but it will be more helpful if you have posted your htaccess here. However, I can give you this comprehensive .htaccess tutorial I found recently.
delete your .com account......... and park your .com domin name in parked domain name in your cpanel of .net acount.
If you have mod_rewrite enabled, the following .htaccess config will redirect the visitor (and search engines) to your new site - while maintaining the request. (ie. if visitor requests "http://www.yourolddomain.com/posts/how-to-stop-satellites-reading-your-thoughts/" , they would be redirected to "http://www.yournewdomain.com/posts/how-to-stop-satellites-reading-your-thoughts" Here's the config: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.yournewdomain.com/$1 [R=301,L]