Today I moved my website to a new hosting company (Verio). I've done this lots of times before, and I know that your website should go inside the "htdocs" folder.
今天我把我的网站搬到了一家新托管公司(Verio)。我以前做了很多次,我知道你的网站应该进入“htdocs”文件夹。
Now usually when I use FileZilla, I can do a "Right Click" on a filename to get the URL of that file. This is the result of my root default file: ftp://test@test.com/www/htdocs/Research/index.php
现在通常当我使用FileZilla时,我可以对文件名进行“右键单击”以获取该文件的URL。这是我的根默认文件的结果:ftp://test@test.com/www/htdocs/Research/index.php
However, on the web, the true URL of my default file is: www.test.com/Research/index.php
但是,在Web上,我的默认文件的真实URL是:www.test.com/Research/index.php
My index.php file is in the website root folder. Does anyone know why FileZilla would include the server folders "www/htdocs" as part of the URL? These folders should not normally be visible to the user.
我的index.php文件位于网站根文件夹中。有谁知道为什么FileZilla会将服务器文件夹“www / htdocs”作为URL的一部分包含在内?这些文件夹通常不应对用户可见。
OR, is this look correct?
或者,这看起来是否正确?
1 个解决方案
#1
0
That ftp url is correct. Your FTP account has access to the two folders (www/htdocs/
) before the document root, as most hosting providers provide.
那个ftp网址是正确的。您的FTP帐户可以访问文档根目录之前的两个文件夹(www / htdocs /),正如大多数托管服务提供商所提供的那样。
You are also correct to assume that http access is limited to the document root. (Meaning they cannot see www/htdocs/
)
您也可以认为http访问仅限于文档根目录。 (意思是他们看不到www / htdocs /)
#1
0
That ftp url is correct. Your FTP account has access to the two folders (www/htdocs/
) before the document root, as most hosting providers provide.
那个ftp网址是正确的。您的FTP帐户可以访问文档根目录之前的两个文件夹(www / htdocs /),正如大多数托管服务提供商所提供的那样。
You are also correct to assume that http access is limited to the document root. (Meaning they cannot see www/htdocs/
)
您也可以认为http访问仅限于文档根目录。 (意思是他们看不到www / htdocs /)