.htaccess to change URL

cecilthistle

New Member
So i have a mvc system setup but it does not generate search engine friendly urls. A typical url is in the format: \[code\]http://sitedomain.com/class/classMethod?parameter=valueA?parameter2=valueB\[/code\]This is what i need to have:\[code\]http://sitedomain.com/class/valueA/valueB/\[/code\]My .htaccess actually modified a part of the url already but i dont know how to do the second part \[code\]Options +FollowSymLinksRewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php?controller=$1 [L,QSA]\[/code\](originally looked like \[code\]http://site.com/index.php?controller=class\[/code\], but after the htaccess below is ran, it looks like \[code\]http://site.com/class\[/code\])If anyone could help me with this, that would be great, thank you.
 
Back
Top