Hello all. The last 2 drupal installs have not created a .htaccess (I am not sure if .htcacccess is created by drupal or apache actually). I have 2 questions:

1. Can I just copy an .htaccess from another simular drupal site?
2. Any ideas why the last 2 installs did not create that .htaccess file?

Thanks for any insights.

S

Comments

yelvington’s picture

The .htaccess file is part of the downloadable compressed tarfile. It is not created or modified by the installer.

If it's missing, the likely culprit is that you uncompressed the file on your desktop and failed to upload the .htaccess file to the server.

matt_harrold’s picture

If you're working on a Mac, by default dot files (files starting with a dot) aren't visible so generally get missed when you select a bunch of files to upload via FTP or whatever.

Of course, if you're not on a Mac .... I'm all out of ideas.

Poieo’s picture

Installation does not create the .htaccess file. It is included in the Drupal core files. If it is not making it to your server, you might see if your ftp client, or other method of uploading files is set to transfer/view hidden files.

And yes, as long as you have not modified your .htaccess file in your other installations, you can copy it. Or, upload it from a set of core files.