Connect with us

Magento 2.2.X redirect from sub to root

First the below htaccess code which is working for magento 1 hope that is also work for Magento 2:

# Mod Rewrite
Options +FollowSymLinks 
RewriteEngine On
RewriteCond %{REQUEST_URI} !(.*)magento
RewriteRule ^(.*)$ magento/$1 [L]

Your Answer

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.

Log In

Subscribe to our newsletter

Enter your email address to subscribe to blog and receive notifications of new articles by email.
100% Privacy. No spam guaranteed