-1

I have a project in xampp/htdocs/bos. Whenever I hit http://localhost, I need to land directly to xampp/htdocs/bos and URL displaying in browser should be http://localhost only, throughout the application.

I have followed similar questions asked already but no luck.

When i create virtual host in file like

DocumentRoot C:/xampplite/htdocs/bos/ ServerName hosted_ip_here

and accessing the same ip from other location within MAN It will create URL localhost/bos. I only need hosted_ip_here to be displayed in the URL and not "bos" i.e. Application Name

Apache redirect localhost to localhost/abc/def/

setup apache virtualhost (windows)

sndp143
  • 3
  • 1
  • 2
    Possible duplicate of [setup apache virtualhost (windows)](https://stackoverflow.com/questions/2658173/setup-apache-virtualhost-windows) – treyBake Sep 24 '19 at 10:06
  • I have hosted that application on windows server.When i put ip of the server i need direct access of application without application name anywhere in the MAN – sndp143 Sep 24 '19 at 11:15

2 Answers2

0

you can do one you must have a index.php file in htdocs you can change header location over there

vivek modi
  • 487
  • 1
  • 5
  • 19
0

You need to change the php ini file 'Dir' to and specify the address

Cybil K
  • 96
  • 10