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/mydomain.com

 <virtualhost *:80="">....
 <directory srv="" www="" mydomain.com="" 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

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