Description
How can I write a simple PHP script that would display "http://localhost/index.php?r=site/login" instead of "http://localhost/myfolder/anotherfolder/login.php"? Please help..
Thanks a lot!

Explanation & Answer

Hi, you have to change your webroot in the httpd.conf file. Are you using Apache? If so, let me know if you are using EC2 or other service. You need to find the file called "httpd.conf" in your server.
Search webroot in the file. Change it from
/var/www/html
to
/var/www/html/myfolder
