change url structure on production

Notice: This thread is very old.
Member | 1

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?


Pavel Kravčík
Member | 1082

Make www directory root. On localhost you can simulate this behaviour via vhost. Example if you using Apache –…xamples.html

Member | 560


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

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