This rule: RewriteRule ^(.*)$ index.php/$1 [L] not working if the URL include %D9%85 in the other hand if ^([\s\S]*)$ used instead of ^(.*)$ the rewriting is done without problem