RewriteEngine on RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ http://rehabilitacja-beactive.pl/$1 [R=301,L]