I'm coding a theme from an HTML template. Initially, I just removed the index.php with the .htaccess as the answer shows.
Now I have "Internal Server Error" even on the homepage, that was working before that.
I already tried to change my permalinks a thousand times. Don't know what to do anymore.
I'm using the latest WP version, 5.2.2 I guess. I'm locked out of the dashboard. but I have wp-cli if it could help.
Thanks for any help!
This is my apache2.conf
<Directory />
Options FollowSymLinks
AllowOverride All
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
My .htaccess in /var/www/html/site2.localhost/public_html/
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress