Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Correct "base path" terminology

Consider a 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:

  1. /var/www/html/mysite/ index.php (Base path? Root path?)
  2. /var/www/html /mysite /index.php -or- www.mysite.com /mysite /index.php (Path? Base path?)
  3. www.mysite.com/mysite/index.php (Base URL)

I can't seem to come up with a clear cut name to distinguish 1 and 2.

like image 493
Yarin Avatar asked Oct 31 '11 22:10

Yarin


1 Answers

I'm from a ruby-on-rails background but...

1) either base-path or root path are used for this. Pick one and be consistent :) 3) in RoR we call this the "root url" but it's also kinda the "home path" too. as to 2 - it doesn't occur in rails (or at least we don't have a name for it)

it sounds like the following would be consistent without confusing them all:

  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

An alternative would be:

  1. root-filepath
  2. home-filepath
  3. home-url

my 2c :)

like image 152
Taryn East Avatar answered Nov 12 '22 06:11

Taryn East