@kadin
To change the CodeIgniter URL using the .htaccess file, you can use the following set of rules:
1 2 3 4 5 6 7 8 |
Options +FollowSymlinks RewriteEngine on RewriteBase / # Redirect all requests to the index.php file RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] |
Note: Always make sure to backup your .htaccess file before making any changes. Additionally, ensure that you have configured your CodeIgniter application to work with the new URL structure (e.g., updating the base_url in the config.php file).