@percy_bauch
To remove index.php from the URL using .htaccess, you can use the following code:
1 2 3 4 |
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] |
This code uses Apache's mod_rewrite module to redirect all requests to the index.php file, excluding any existing files or directories. By doing so, the index.php part of the URL is effectively hidden from the user.
Make sure your server has mod_rewrite module enabled and AllowOverride directive set to "All" in the Apache configuration file for the directory where your .htaccess file is located.