Remove of appended directory in url

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Remove of appended directory in url

Postby BGK » 09. February 2021 11:40


I have a site running on xampp 3.2.4 and Win2019 Server Standard.

On the server that xampp is running the url for the site is correct, so if its it displays in the address bar of the browser.

However, if I open the site from a desktop it appends the directory in which the site is in the htdocs directory. So if my site is under htdocs\mysite the "mysite" portion is appended to the domain. So instead of been "" its comes out as "".

So what initially happened is that when i opened the site from outside the server the "/dashboard/" kept opening. I modified the index.php file and replaced the /dashboard/ with the directory of the site "/mysite/". So I guess its showing because of this change.
I have updated my "httpd-vhosts.conf" file with the domain and the correct directory of the site.

<VirtualHost *:80>
DocumentRoot "E:/xampp/htdocs/mysite"
##ErrorLog "logs/"
##CustomLog "logs/" common
<Directory "e:/xampp/htdocs/mysite">
Options All
AllowOverride All
Require all granted

How or what do I need to change so that when opening the site outside of the server the url shows the domain name only and not the directory where the site is?

Thanks in advance.
Posts: 1
Joined: 09. February 2021 10:55
XAMPP version: 3.2.4
Operating System: Win Server 2019 Standard

Re: Remove of appended directory in url

Postby Nobbie » 09. February 2021 22:33

Unfortunately, your description is a mess. Its hard to understand, as you mix up domain names so and so. Horrible.

In your description, you are telliing about "". In your VirtualHost, there is no "", instead there is a "".

And finally, i think, none of these domains are the real ones. What makes it even more confusing. Its definately totally impossible to give any hint, as we do not know, what REALLY happens.
Posts: 11984
Joined: 09. March 2008 13:04

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 72 guests