纠正"基本路径"术语

Yar*_*rin 9 convention url terminology path definition

考虑安装在'mysite'目录中的网站:

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

你会怎么称呼以下内容:

  1. / var/www/html/mysite / index.php(基本路径?根路径?)
  2. / var/www/html / mysite /index.php - 或者 - www.mysite.com / mysite /index.php(路径?基本路径?)
  3. www.mysite.com/mysite /index.php(基本网址)

我似乎无法想出明确的名称来区分1和2.

Tar*_*ast 6

我来自ruby-on-rails背景但是......

1)使用基本路径或根路径.选择一个并保持一致:) 3)在RoR中我们称之为"根网址",但它也是"家庭路径".至于2 - 它不会出现在铁轨中(或者至少我们没有它的名称)

听起来像下面的内容是一致的而不会让所有人混淆:

  1. base-filepath == / var/www/html/mysite / /index.php
  2. root-filepath ==/var/www/html / mysite /index.php
  3. root-url == www.mysite.com/mysite /index.php

另一种选择是:

  1. 根文件路径
  2. 首页 - 文件路径
  3. 家庭网址

我的2c :)