# Interesting problem

**URL:** <https://forum.kirupa.com/t/interesting-problem/276183>\
**Category:** Uncategorized\
**Created:** [November 24, 2008, 9:58am UTC](https://forum.kirupa.com/t/interesting-problem/276183 "2008-11-24T09:58:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HecticMedia](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@HecticMedia](https://forum.kirupa.com/u/HecticMedia)\
**Post date:** [November 24, 2008, 9:58am UTC](https://forum.kirupa.com/t/interesting-problem/276183/1 "2008-11-24T09:58:46Z")

</div>

Hey all,

I have a client who had his site on let’s say [X.com](http://X.com) … he now has his site on [Y.com](http://Y.com) … but he has links on other people’s sites to his old site.

Is there a way using something like .htaccess … so that if I went to [X.com/example](http://X.com/example) it would automatically forward me to [Y.com/example](http://Y.com/example) ? So it’d keep the address i used, but change the domain name?

Thanks in advance!

Ben
