I changed the server in local from nginx to Apache and now I get this error below and more information below this error.
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.
I copied the .htaccess file as below in case that’s the problem:
BEGIN WordPress
The directives (lines) between BEGIN WordPress
and END WordPress
are
dynamically generated, and should only be modified via WordPress filters.
Any changes to the directives between these markers will be overwritten.
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]END WordPress
More information about this error may be available in the server error log.