我想做的很简单。我想编辑标准 Centos 服务器上的网页的 html 文件。我可以很好地访问它,并且 Apache 设置为在 /var/www/sitename 中查找。这是我的问题:
我要编辑的页面的网址是这样的:http://www.yoursite/page1
我认为在 /var/www/sitename 的某个地方,应该有一个名为 page1.html 的文件。但是没有。我在 FileZilla 和 Putty 中运行了搜索功能(使用 find /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.
*/