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?
Where and how do some folders on the server get converted into URL adresses?
Share
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 yourDocumentRootis/usr/local/apache2/htdocs, then/usr/local/apache2/htdocs/foowill be seen ashttp://mysite.com/foo.