module URL

I have one module which contains most of my application functions.

so I think it will be very nice if I can remove the module name from the URL.

for example:

most of my URLs will look something like this:


I hope somebody will help

a friend in the yii chat room gave me these lines to be used in the .htaccess file:

RewriteEngine on

RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^mahham/(.*)$ ./mahham/index.php/$1 [L,QSA]

the idea is the instruct the server to ignore index.php/mahham

but it does not work.

I don’t know the syntax of htaccess. no body else seems to know it neither o_O