I work with wordpress, and I wanted to change my permalink from "default" to "post name". After I changed it, I got a
404 error from Apache. Then I searched and got this: WordPress permalink structure change issue. When I write this command "
sudo a2enmod userdir" and refresh my page, I get a
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.
Here is my server log error:
127.0.0.1:45292] /var/www/tvvarzesh.dev/public_html/.htaccess: Invalid command 'BEGIN', perhaps misspelled or defined by a module not included in the server configuration