atom2ueki
atom2ueki

Reputation: 835

Where is .htaccess located in ubuntu apache2?

I've already enable headers using command a2enmod headers,i want to vim it to edit cache-control allowed http no_cache, just don't know where is .htaccess located.

Upvotes: 1

Views: 1013

Answers (1)

Zagorax
Zagorax

Reputation: 11890

.htaccess is a control file which can be located in arbitrary folder in order to overwrite apache default settings regarding that folder and its subfolders.

Create that file inside the document root of your project and edit it.

Upvotes: 1

Related Questions