Hi I have stuck using magento 2 where I want remove duplicate admin in the URL,this my url :


and I want it look like this :


I have googling and try this link In magento admin url, the word “admin” occurs twice. how to remove the second one? but still no luck, in that link just tell me how to change the admin but not to remove the duplicate admin word in the link, adn I also use .htaccess but still not fix the problem, has anyone know how to do that?

EDIT 1 :

I have try this in .htaccess but still no luck :

RewriteRule ^admin/admin/?$ /admin/$2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.