First of all, I'm trying to find .htaccess. I can only see the file when I'm logged in as the superuser and it's located in the files directory. I was under the assumption this file contained clean_url rules. (I have mod_rewrite module loaded)

However, these are the total contents of the file:

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
<IfModule mod_rewrite.c>
  RewriteEngine off
</IfModule>

Is this the correct .htaccess file? If not, where is it? (I'm guessing this is in the files directory to prevent mod_rewrite from rewriting the addresses of files uploaded by users?)

I can't find .htaccess elsewhere. I'm using 4.7.3

Comments

styro’s picture

your main Drupal directory. If it isn't, you'll need to upload another one.

This is what it should look like:

http://cvs.drupal.org/viewcvs/drupal/drupal/.htaccess?rev=1.73&only_with...

--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ

benbruscella’s picture

That is the wrong file.

Depending on how you extract the tar.gz, this file sometimes goes missing. It is part of the distribution though, and should extract to the root directory...

zoon_unit’s picture

I found it in the original tar ball, but somehow it didn't extract?? After I reextracted it, I noticed the owner of the file was not me, but 1055? Maybe the archive manager didn't think I had permissions to it the first time? (I'm currently logged in as superuser, but wasn't the first time I extracted)

Long story short, once I extracted, changed the rewritebass setting, and enabled AllowOverride in httpd.conf, everything worked! Whew! There is a lot of tweaking that must be done to fully enable drupal modules. I just struggled through getting the GD library to work last week so I could use the image modules.

Anyway, thanks all for the help.