Can I have a different url appear in the browser bar?

Can I have a different url appear in the browser bar?
In other words, if my domain is website1.com,
but I want website2.com to appear as the url browser bar,
is there any way to accomplish that? Masking of some type or an alias?

If you own website1.com and website2.com, then the simplest way is to redirect one to the other. (if you don’t own both, then obviously you shouldn’t be trying to masquerade as another site.)

1 Like

Thankjs for your reply. I own both domains. So, please describe what you mean by " redirect one to the other".

If you are using cPanel, there is a Redirect option there; you can just follow the instructions. Otherwise, you can do it through the .htaccess file (unless you’re on Windows hosting).

If it is an Apache server it can be done via the .htaccess file.
http://www.orderofbusiness.net/blog/redirect-old-domain-to-new-domain-via-htaccess/

1 Like

What I’m trying to do is replace the existing domain with another one that I own, without moving any of the web files.

So maybe it would be easiest to change your DNS so the new address points to the same site server?

Thanks for your reply.
Both domains are already on the same server.
So, can you please provide more details on your suggestion?
Much thanks

I imagine the process would be similar to what you did when you set up the site. eg.

site is hosted at IP 123.123.123.123
domain name my-site-name.com points to 123.123.123.123
when someone goes to my-site-name.com they get the site at 123.123.123.123

register my-new-site-name.com
have my-new-site-name.com point to 123.123.123.123
drop my-site-name.com

Thanks for your reply/explanation.
Much appreciated.
By “drop my-site-name.cm”, can you clarify what you mean by “drop”?

Thanks again

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.