Send all visitor old URL to new URL

Sometimes We need to change domain name. Then we change it and forward old domain to new domain. Like:

My OLD Domain name is: http://alshedupur.com

My New Domain is: http://alshe.com

Now I move website alshedupur.com to alshe.com and forward alshedupur.com to alshe.com

So who visit alshedupur.com he/she will be automatically forwarded to alshe.com

Now My domain age is 3 years. In this 3 years I post many article, make many pages and any others things… its already shared in social site, many forum, many search engine.. now can I modified it? if some one visit

http://alshedupur.com/post1 .. what happened? If you forward all domain using .htaccess its automatically forwarded to alshe.com or not give a error message called 404 not found !

Its a very bad effect for seo or a site. Then What ?

If some one visit: http://alshedupur.co/post1 and he/she automatically forwarded to http://alshe.com/post1 ? I think its a better idea… its not a big deal to do it. we can do it using .htaccess

Here is .htaccess code. just copy paste it in your htaccess file. you must be put this htaccess file in your old domain hosting account.

replace your url with alshe.com

That’s it 🙂

 

It’s just my garbage work! Not a Tutorial for you. I don’t know it helps you or not, its only for me. But you are welcome to try to find something that’s you need :) . If you find something, just write it in comments :P

Leave a Reply

You must be logged in to post a comment.