# Enable mod_rewrite
RewriteEngine On

# Check if the requested file exists, skip rewrite if it does
RewriteCond %{REQUEST_FILENAME} !-f

# Check if the requested directory exists, skip rewrite if it does
RewriteCond %{REQUEST_FILENAME} !-d

# Redirect all other requests to index.php with the URI as a parameter
RewriteRule ^(.*)$ index.php/$1 [L]
