how to remove www from url

falcone
Member | 3
+
0
-

is it possible to remove the www from the url

example: http://localhost/cd-collection instead of http://localhost/…llection/www

Ondřej Kubíček
Member | 494
+
+2
-

it is not about Nette
it depends on where you set the document root

falcone
Member | 3
+
0
-

$baseUrl is set to www directory, how do i change this

Ondřej Kubíček
Member | 494
+
+4
-

I wrote it is not about nette
you dont have to change $baseUrl

you have to configurate your server like apache or nginx or what you use

falcone
Member | 3
+
0
-

ok i found the htaccess rewrite rule that does the trick. Creating a virtual host is not necessary.