change url structure on production

zdenek77
Member | 1
+
0
-

Hi everyone, I am new here, i have prepared first application and currently working on deployment to production environment. So situation is, that on development environment i have structure of url http://localhost/…ectName/www/ but now i need to change it to http://domain.tld/ProjectName or only to http://domain.tld.
Could somenone advice me if it is possible and how?

Thanks

Pavel Kravčík
Member | 1195
+
0
-

Make www directory root. On localhost you can simulate this behaviour via vhost. Example if you using Apache – https://httpd.apache.org/…xamples.html

GEpic
Member | 566
+
+1
-

@PavelKravčík

How I use it:

<VirtualHost *:80>
    ServerName project.localhost
	DocumentRoot E:/wamp64/www/sample-project/www
	<Directory  "E:/wamp64/www/sample-project/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>

Last edited by GEpic (2018-04-10 21:27)