Arthur Mamou-Mani
Arthur Mamou-Mani

Reputation: 2333

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?

Upvotes: 1

Views: 35

Answers (1)

hymie
hymie

Reputation: 2068

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 .

Upvotes: 2

Related Questions