I have to store view under a store whose code as default and crescent
when I run the domain name it should be pointing to default store and when I run URL as http://hostname/crescent it should pointing to crescent store
for example
http://localhost:81/ecommerce/ Should point to http://localhost:81/ecommerce/?___store=default
http://localhost:81/ecommerce/crescent Should point to http://localhost:81/ecommerce/?___store=crescent
To achieve this, I tried below
Under URL rewrite management I created a custom rule as below
Request Path: /
Target Path: ?___store=default
Redirect: Permanent
But no luck,
can someone suggest me on this.