Where and how do some folders on the server get converted into URL adresses?

Where and how do some folders on the server get converted into URL adresses? For example, how does my wordpress folder called wp-admin on the root folder of the server becomes http://mysite.com/wp-admin ? Does it happen within the database or within the html code or elsewhere?

Related posts

Leave a Reply

1 comment

  1. It happens in the web server configuration. For apache, there is a variable called DocumentRoot . Any file or directory under this directory will be available to your web server. For example, if your DocumentRoot is /usr/local/apache2/htdocs, then /usr/local/apache2/htdocs/foo will be seen as http://mysite.com/foo .