how to remove www from url

about a year ago

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

about a year ago

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

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

about a year ago

falcone
Member | 3
+
0
-

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

about a year ago

Ondřej Kubíček
Member | 393
+
+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

about a year ago

falcone
Member | 3
+
0
-

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