trouble with RewriteRule directive is forbidden

I get this error
> Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:

I have added following lines to /etc/apache2/sites-available/

 <virtualhost *:80="">....
 <directory srv="" www="""" public_html="">AllowOverride All
      Options +ExecCGI -MultiViews +FollowSymLinks
      Order allow,deny
      Allow from all</directory></virtualhost> 

now I get regarding htaccess - Invalid command ' ???

1 Reply

solved by adding AllowOverride to vhost file


Please enter an answer

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] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct