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?
Leave a Reply
You must be logged in to post a comment.
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 yourDocumentRoot
is/usr/local/apache2/htdocs
, then/usr/local/apache2/htdocs/foo
will be seen ashttp://mysite.com/foo
.