apache - Proper url in address bar -


i have got site running on apache. have domain. lets say: [www.mysite.com][1]. when enter goes example [www.sites/sitedirectory][2] see in address bar.

how can make sure (i think shoult done .htaccess) still show in address bar [www.mysite.com][3] , not [www.sites/sitedirectory][4]

thanks much.

you cannot make browser's address bar show domain different data loaded from, security reasons.

there few options:

  1. you can set www.mysite.com proxy, fetches content www.sites/sitedirectory, , re-serves it, suspect isn't want.
  2. you can put web page @ wwww.mysite.com consists of 1 large html frame containing real site @ www.sites/sitedirectory. considered bad idea, (without lot of messing about) means can ever link home page, , links other sites have specially written jump out of frameset, etc, etc.
  3. you can sort out apache configuration there proper vhost entry www.mysite.com, rather redirect other url.

without knowing why have got are, suggest investigating option 3.


Comments