I have got a site running on apache. Now I have a domain. Lets say: [www.mysite.com][1]
. When I enter this it goes to for example to [www.sites/sitedirectory][2]
this I see in the address bar.
How can I make sure (i think it shoult be done with .htaccess) that it will still show in my address bar [www.mysite.com][3]
and not [www.sites/sitedirectory][4]
Thanks very much.
You cannot make a browser's address bar show a domain different from where the data was loaded from, for security reasons.
There are a few options:
Without knowing why you have got to where you are, I would strongly suggest investigating option 3.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.