1

I have my magento 2 staging site setup in folder staging and on url stagingexample.com , I have created a new folder newSetup in staging folder and setup copy of staging site in newSetup. I want to access the new instance of site as stagingexample.com/newSetup.

The homepage and admin panel of stagingexample.com/newSetup and stagingexample.com/newSetup/admin are working fine.

But, on frontend all the pages are redirecting to stagingexample.com/page_url only.

Please provide a solution.

  • This could be an issue with your .htaccess in the root installation. If you have a magento install in the root folder, and another in a subfoler beneath root the .htaccess files will collide.You will have to add a rewrite rule that excludes your subfolder. RewriteRule ^(newSetup)($|/) - [L] – tecjam May 10 at 7:30
  • Please check the base url in website scop. – Saphal Jha May 10 at 7:32
  • @tecjam I added the rewrite rule in my root magento htaccess but there is no effect. – chanchal May 10 at 7:53
  • @SaphalJha I have checked the base urls in admin configuration, they are fine. How to check the scope ? The issue is only at frontend. Homepage is rendering correct but rest all the pages from homepage redirects to staging site. – chanchal May 10 at 7:57

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.