The correct terminology of the "base path"

Consider the website installed in the mysite directory:

/var/www/html/mysite/index.php
document root = /var/www/html
url = www.mysite.com/mysite/index.php

What would you call the following:

  • / var / www / html / mysite / index.php (base path? Root path?)
  • / var / www / html / mysite /index.php -or- www.mysite.com / mysite /index.php (path? Base path?)
  • www.mysite.com/mysite /index.php(basic URL)

I can't seem to give a clear name to distinguish between 1 and 2.

+7
source share
2 answers

I am from the ruby-on-rails background, but ...

1) either the base path or the root path is used for this. Choose one and be consistent :) 3) in RoR we call it the “root url”, but also the “home path”. as for 2 - this does not happen on the rails (or at least we don’t have a name for it)

it sounds like the following is consistent without confusing them all:

  • base-filepath == / var / www / html / mysite / /index.php
  • root-filepath == / var / www / html / mysite /index.php
  • root-url == www.mysite.com/mysite /index.php

An alternative could be:

  • root_path to file
  • home path_to_file
  • home URL

my 2c :)

+4
source

It turns out that they can be characterized in various ways. I have listed them here when I find them:

In Django :

2 = script_prefix

-3
source

All Articles