I found the files (/etc/httpd), so I'm looking in it. Here's what I noticed:
# # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess
# # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <Files ~ "^.ht"> Order allow,deny Deny from all </Files>
So it looks like .htaccess files are allowed, but they just can't be seen even by things like FileZilla (the comments just say web clients). Correct?
However, the root for my site is /home/myname. I'm assuming that means that I have to add another directive for my directory like this:
<Directory "/home/myname"> AllowOverride All </Directory>
Is that correct?
Will I need to restart Apache after making these changes?
Thanks.
Steve
-------- Original Message -------- Subject: Re: [support] Disappearing .htaccess File Date: Sun, 20 Jul 2008 16:11:02 -0700 From: Steve Edwards killshot91@comcast.net To: support@drupal.org References: 4882D8FC.7080502@comcast.net 20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com 4882E808.2040507@comcast.net 20080720074151.138973hgc0qlqi8s@illyria.philipnet.com
OK, it's a collocated box, and I got root access to it. Where do I find the Apache config files? I've been poking around and haven't found them yet.
Steve
philip@philipnet.com wrote:
Hi Steve,
If it's not your client, then it's the server. I've used hosting companies before where they won't show the .htaccess file (or any file starting with '.') in a directory listing. In those cases the companies have recommended keeping a local copy of the .htaccess or .htpasswd file(s) in case you ever need to amend them.
And what about the Apache configuration? Can you confirm that that allows .htaccess files to override the settings? Because of a performance hit when using .htaccess files some hosts don't allow .htaccess files.
Regards.
Philipnet.
Quoting "Steve Edwards" killshot91@comcast.net:
I'm using FileZilla, and I can see the .htaccess file just fine on my own server. I can upload and download to and from that server and see the file (and also on other servers) without a problem.
The reason I don't think it is there is because none of my links work. I'm using clean URLs and the home page shows fine, but every link I click on gives the "URL /xxxxx not found on this server" error message.
I can't access the .conf file. My FTP access puts me in the Drupal root, which is a subdomain. I tried modifying Base_Rewrite, but that does no good since the .htaccess isn't even there in the first place.
Steve
philip@philipnet.com wrote:
Quoting "Steve Edwards" killshot91@comcast.net:
I've been working on a customer site on my server, and I uploaded it to the client server today. The front page displayed fine, but when I click on any links, I get page not found errors. I'm using clean URLs on my server (like I do on every project), and I noticed that the .htaccess file was missing. I uploaded it twice, but when I go to another folder and come back, it's gone, as if I never uploaded it in the first place. I asked the client about it, and they know of nothing that would do that. Has anybody seen this before, or know how to fix it?
Hey Steve,
Under UNIX/Linux any file that starts with a '.' is considered a hidden file - i.e. a file that's not normally shown when you list the contents of a directory.
There should be an option on your FTP client to show hidden files.
Note that even if hidden, the .htaccess file still exists and should take effect. However it sounds like it doesn't. Can you examine/modify the Apache configuration so that .htaccess file take effect? Something like:
<Directory "/location/on/remote/server/to/drupal/installation"> Options All AllowOverride All
</Directory>
in the Apache configuration should work.
Regards.
Philipnet.
-- [ Drupal support list | http://lists.drupal.org/ ]