I had a case – to remove /index.php from the URL in the menu items for the main and internal pages on the site.
To do this, first go to System – General Settings – SEO Options and enable SEF and URL Redirection. After that, it is possible that internal pages on the site will open with a 500 Internal Server Error.
Solution to solve the problem:
You need to edit the .htaccess file, find the line # RewriteBase / and remove the comment symbol.
The line should look like this:
RewriteBase /
After that, the error 500 internal server error in Joomla will be fixed.