# Looking to clean up my doibarr domain

**URL:** <https://www.dolibarr.org/forum/t/looking-to-clean-up-my-doibarr-domain/23931>\
**Category:** Talk between Dolibarrians\
**Tags:** Question, Windows, Help\
**Created:** [June 28, 2023, 10:26pm UTC](https://www.dolibarr.org/forum/t/looking-to-clean-up-my-doibarr-domain/23931 "2023-06-28T22:26:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eskos](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eskos/32/6184_2.png) [@Eskos](https://www.dolibarr.org/forum/u/Eskos)\
**Post date:** [June 28, 2023, 10:26pm UTC](https://www.dolibarr.org/forum/t/looking-to-clean-up-my-doibarr-domain/23931/1 "2023-06-28T22:26:15Z")

</div>

i have to put a /dolibarr at the end of the url or it will it will not work  
is there a way to get rid of the back part?

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [June 28, 2023, 10:29pm UTC](https://www.dolibarr.org/forum/t/looking-to-clean-up-my-doibarr-domain/23931/2 "2023-06-28T22:29:28Z")

</div>

Hello,

You don’t need to have Dolibarr, you can put it at the root directory

---

<div class="post-metadata">

**Author:** ![Eskos](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eskos/32/6184_2.png) [@Eskos](https://www.dolibarr.org/forum/u/Eskos)\
**Post date:** [June 29, 2023, 9:37pm UTC](https://www.dolibarr.org/forum/t/looking-to-clean-up-my-doibarr-domain/23931/3 "2023-06-29T21:37:30Z")

</div>

How would you put it in the root directory

---

<div class="post-metadata">

**Author:** ![caos30](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/caos30/32/6733_2.png) [@caos30](https://www.dolibarr.org/forum/u/caos30)\
**Post date:** [July 1, 2023, 3:26am UTC](https://www.dolibarr.org/forum/t/looking-to-clean-up-my-doibarr-domain/23931/4 "2023-07-01T03:26:15Z")

</div>

It’s not very clear what are you really asking for. But if i suppose that you needing now to access to your Dolibarr with this URL:

- [mydomain.com/dolibarr](http://mydomain.com/dolibarr)

BUT you would like to use this other URL:

- [mydomain.com](http://mydomain.com)

Then you must modify the apache config for the corresponding virtual host (if you’re using apache). Something like this works for me:

- edit file: `/etc/apache2/sites-available/mydomain.com.conf`

```auto
<VirtualHost *:80>
	DocumentRoot /home/sergi/www/mydomain.com/htdocs
	ServerName mydomain.com
	ServerAlias www.mydomain.com
	<Directory "/home/sergi/www/mydomain.com/htdocs">
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Require all granted
	</Directory>
	UseCanonicalName off
</VirtualHost>

<IfModule mod_ssl.c>
    <VirtualHost *:443>
        DocumentRoot /home/sergi/www/mydomain.com/htdocs
	ServerName mydomain.com
	ServerAlias www.mydomain.com
	ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        SSLEngine on
	SSLCertificateFile /etc/apache2/ssl/apache.crt
        SSLCertificateKeyFile /etc/apache2/ssl/apache.key
        <FilesMatch "\.(cgi|shtml|phtml|php)$">
                SSLOptions +StdEnvVars
        </FilesMatch>
	<Directory "/home/sergi/www/mydomain.com/htdocs">
                SSLOptions +StdEnvVars
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Require all granted
        </Directory>
    </VirtualHost>
</IfModule>

```

It can vary depending on your settings, but the important part to get the URL be only the domain name is this line:

```auto
DocumentRoot /home/sergi/www/mydomain.com/htdocs

```

defining the DocumentRoot of the website. Please, **don’t confuse with the DOCUMENT directory in Dolibarr** , is the opposite: for apache, the DocumentRoot is where are the PHP scripts accessible from web browser… so the `htdocs` directory in the case of Dolibarr.

---

<div class="post-metadata">

**Author:** ![Eskos](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eskos/32/6184_2.png) [@Eskos](https://www.dolibarr.org/forum/u/Eskos)\
**Post date:** [July 4, 2023, 1:26am UTC](https://www.dolibarr.org/forum/t/looking-to-clean-up-my-doibarr-domain/23931/5 "2023-07-04T01:26:58Z")

</div>

how would you do that on a windows install

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [July 4, 2023, 6:52pm UTC](https://www.dolibarr.org/forum/t/looking-to-clean-up-my-doibarr-domain/23931/6 "2023-07-04T18:52:13Z")

</div>

Hello,

Depends on how you have setup your installation, and how you have declared your domain.
