Yii htaccess on WAMP

Hi all, I’ve got a problem running my application on WAMP 2.5 (Apache 2.4.9) on Windows 10.

First of all the page run smoothly on my Linux machine, with rewrite engine on and the .htaccess file with the code:




Options +FollowSymlinks

IndexIgnore */*

RewriteEngine on

RewriteBase /~rotceh/inversa/


# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d


# otherwise forward it to index.php

RewriteRule . index.php



Tried the same .htaccess on the WAMP machine without the Rewritebase line because I don’t have Virtual Directory but I got the ERR_TOO_MANY_REDIRECTS.

Also tried to disable the rewrite engine and comment the URLs in path-format in the main.php but also got the ERR_TOO_MANY_REDIRECTS…