Ilija Bradaš
Ilija Bradaš

Reputation: 645

Rewrite rule for magento store view

i have a question about .htaccess redirection rule. Namely, i have two store views in magento: english and swedish. I want to write rule in .htaccess that when user type in this address in browser url bar www.example.com/se to be redirected to https://example.com/se/ Can someone help me od give me some pointers for this problem? Thanks

Upvotes: 0

Views: 60

Answers (1)

Jinesh
Jinesh

Reputation: 1580

you can write like this

RewriteCond %{HTTP_HOST} =www.example.com
RewriteRule (.*) http://example.com/$1 [R=302,L]

Upvotes: 0

Related Questions