Server Is not reading .htaccess File

I have created my first subscription on Ubunto server, the root directory of my website is as below:

/var/www/html/lookslady.com/public_html

the website code and the .htaccess file is at above location, but the server is not reading the .htaccess file.

I have already increased the permission of .htaccess file to 777.

Also found the below solution form google:

Options Indexes FollowSymLinks

AllowOverride None

Require all granted

In apache2.config i have changed the AllowOverride None to All, but it throws me Internal Server Error.

Please help me to fix this issue.

Thanks!

1 Reply

With AllowOverride All, your .htaccess file is being read into Apache's configuration.

If you then get an Internal Server Error, it suggests that there is an error in the .htaccess file.

Post the contents of your .htaccess file and someone will likely be able to help.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct