what I want to do is very simple. I want to edit a html file of a webpage I have on a standard Centos server. I can access it just fine, and Apache is set to look in /var/www/sitename. Here is my problem:
The url of the page I want to edit is like so: http://www.yoursite/page1
I think that somewhere in /var/www/sitename, there should be a file called page1.html. But there isn’t. I’ve ran search functions in FileZilla and Putty (using
find /var/www/yoursite/ -exec grep -l “jeyword-from-page-1” {} \;
It all seems very simple but I can’t find the file I am supposed to edit. Where should I look for it? Any ideas or tips are greatly appreciated. Thank you for your time in advance!
EDIT:
Thank you all for the replies. Here is what I found in my htaccess file:
<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>
These are the ones that look suspicious to me, nothing out of the ordinary with the other lines. Could this be it?
EDIT2: I just found these lines in my index.php file:
/**
* @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.
*/
I dont think you need grep. Use name like this: find /path/to/site -name “filename”.