gpt4 book ai didi

html - 使用 Putty 和 FTP 查找文件

转载 作者:行者123 更新时间:2023-11-27 22:37:02 25 4
gpt4 key购买 nike

<分区>

我想做的很简单。我想编辑我在标准 Centos 服务器上拥有的网页的 html 文件。我可以很好地访问它,并且 Apache 设置为在/var/www/sitename 中查找。这是我的问题:

我要编辑的页面的url是这样的:http://www.yoursite/page1

我认为在/var/www/sitename 的某处,应该有一个名为page1.html 的文件。但是没有。我在 FileZilla 和 Putty 中运行了搜索功能(使用找到/var/www/yoursite/-exec grep -l "jeyword-from-page-1"{}\;

这一切看起来很简单,但我找不到我应该编辑的文件。我应该在哪里寻找它?非常感谢任何想法或提示。感谢您提前抽出时间!

编辑:

谢谢大家的回复。这是我在 htaccess 文件中找到的内容:

<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
Order allow,deny
</FilesMatch>

# Set the default handler.
DirectoryIndex index.php



# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /

# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

在我看来,这些是可疑的,与其他行没有任何异常。会不会是这个?

EDIT2:我刚刚在我的 index.php 文件中发现了这些行:

/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com