skip to Main Content

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)

2

Answers


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

    Login or Signup to reply.
  2. You need to change the php ini file ‘Dir’ to and specify the address

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search