I recently have started project in Joomla. I had to remove index.php from it (it was some checkbox in Configuration settings). I have found how to do it. And currently really all URLs are created without index.php.
However, I can directly enter into URL http://mywebsite.com/index.php/article-name and it is not rewriting to http://mywebsite.com/article-name.
If I have a menu, then URL is creating correctly (http://mywebsite.com/article-name – so without index.php).
So the question is:
how to create htaccess redirect for website with index.php to website without index.php.
Since you’re internally routing stuff to index.php, you’ll have to match against the actual request: