I have magento multistore website where store_code is placed after domain name like these below :
so I want to rewrite store_code url only to be like this :
and I've tried add below code in root magento .htaccess file, but it's still not working :
SetEnvIf Request_URI ^\/first\/ MAGE_RUN_CODE=code_first SetEnvIf Request_URI ^\/second\/ MAGE_RUN_CODE=code_second
is there any way to rewrite my store_code url ?