I want to do following this to url in my module
Current URL: domain.com/modulename/?var=something
Wanted URL: domain.com/modulename/var/something
I edited .htaccess in magento root to following code
RewriteCond %{QUERY_STRING} ^var=(.+)$
RewriteRule ^(.*)$ http://domain.com/modulename/%1? [L,R=301]
Above htaccess rewriterule successfully let me redirect to url domain.com/modulename/var/something but It's showing not found page.
Can anybody please let me know how to do this.
Thanks
Nirmal (nirmalkirpa@gmail.com)
Magento Freelancer