Reputation: 1
Need an htaccess/ mod_rewrite assistance to:
Example URL:
domain.com/index.php/moduleA/modeuleB?var=1&bvar=2
domain.com/folder/index.php/moduleC/moduleD?var=1&bvar=2
domain.com/folder/index.php/m1/m2/m3/m4/m5
Upvotes: 0
Views: 2232
Reputation: 67
Put this in .htaccess file
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
Upvotes: 1