• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to mask the URL path?


Well-known member
I know the title won't describe the issue, but I don't know the right way to ask the question, so sorry about that.

But in short, this is what I want to do:

I have a current website located at www.domain.com/website1

I have a new website (xF) located at www.domain.com/website2

What I want to be able to do is any traffic that comes to www.domain.com, I want it to go to www.domain.com/website2.

Now, I know how to do that with a redirect on the host control panel, but what I ultimately want is for visitors to only see "www.domain.com" in their browser, not "www.domain.com/website2". But physically on the file system that website is still located in public_html/website2.

I hope that makes sense, and I hope someone can help me out! Thanks much!