Add autoloader and set .htaccess

it is better to move `count` out
because in this case function count will be executed as much as you have items in the array
so
```php
<?php
$actionsCount = count($explodeAction);
for ($i = 0; $i < $actionsCount; $i++) {
    //your code
}
```
Also you may use `foreach` instead