Magento 2 redirects url to https but not admin panelHow to disable secure url for adminRedirect to previous URL after admin loginOne VirtualHost, multiple aliases and store access issuesDifferent admin URL for each website - Magento 2.1.1Trouble with admin URLSome of url are redirected to httpsAdmin infinite redirect after trying to change admin URLMagento 2 on https (SSL certificate)URL paths not reflecting url key from admin panelMagento 2 admin panel is down after changing Base URL

Why did the RAAF procure the F/A-18 despite being purpose-built for carriers?

Is TA-ing worth the opportunity cost?

Colleagues speaking another language and it impacts work

As a 16 year old, how can I keep my money safe from my mother?

How to display a duet in lyrics?

How do we avoid CI-driven development...?

Word or idiom defining something barely functional

Generator for parity?

Why are the inside diameters of some pipe larger than the stated size?

How can I tell if a flight itinerary is fake?

Why couldn't soldiers sight their own weapons without officers' orders?

Why should public servants be apolitical?

Double blind peer review when paper cites author's GitHub repo for code

How does The Fools Guild make its money?

Why is there a need to prevent a racist, sexist, or otherwise bigoted vendor from discriminating who they sell to?

Can a character who casts Shapechange and turns into a spellcaster use innate spellcasting to cast spells with a long casting time?

In Pokémon Go, why does one of my Pikachu have an option to evolve, but another one doesn't?

Atari ST DRAM timing puzzle

Should I self-publish my novella on Amazon or try my luck getting publishers?

Looking for a new job because of relocation - is it okay to tell the real reason?

Blocking people from taking pictures of me with smartphone

Can you use Shapechange with character feats to Grapple the Tarrasque?

How do I calculate the difference in lens reach between a superzoom compact and a DSLR zoom lens?

Look mom! I made my own (Base 10) numeral system!



Magento 2 redirects url to https but not admin panel


How to disable secure url for adminRedirect to previous URL after admin loginOne VirtualHost, multiple aliases and store access issuesDifferent admin URL for each website - Magento 2.1.1Trouble with admin URLSome of url are redirected to httpsAdmin infinite redirect after trying to change admin URLMagento 2 on https (SSL certificate)URL paths not reflecting url key from admin panelMagento 2 admin panel is down after changing Base URL






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,



for port 443 or
https I have an url like this:
https://subdomain.domain.org/



for http i have:
http://subdomain.domain.org/folder



I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is:
http://subdomain.domain.org/folder/admin , this link should not be redirected.



Can someone help me to figure out how to do this?



Thank you!










share|improve this question






























    0















    I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,



    for port 443 or
    https I have an url like this:
    https://subdomain.domain.org/



    for http i have:
    http://subdomain.domain.org/folder



    I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is:
    http://subdomain.domain.org/folder/admin , this link should not be redirected.



    Can someone help me to figure out how to do this?



    Thank you!










    share|improve this question


























      0












      0








      0


      0






      I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,



      for port 443 or
      https I have an url like this:
      https://subdomain.domain.org/



      for http i have:
      http://subdomain.domain.org/folder



      I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is:
      http://subdomain.domain.org/folder/admin , this link should not be redirected.



      Can someone help me to figure out how to do this?



      Thank you!










      share|improve this question














      I know this question is more about apache config, but it involves Magento too. Currently i have configured my Magento with 2 different URLs,



      for port 443 or
      https I have an url like this:
      https://subdomain.domain.org/



      for http i have:
      http://subdomain.domain.org/folder



      I want to redirect whenever a user types subdomain.domain.org to https://subdomain.domain.org, but if i do this my admin panel redirects there too, i have tried RewriteCond but no one of them worked, my admin panel url is:
      http://subdomain.domain.org/folder/admin , this link should not be redirected.



      Can someone help me to figure out how to do this?



      Thank you!







      magento2 redirect apache admin-url






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 30 at 2:52









      Oscar VazquezOscar Vazquez

      368 bronze badges




      368 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          1














          Please check with below posibilities :




          check with your .htaccess ( url rewrite )



          check your admin base url.




          i.e htaccess :



          Options +FollowSymLinks #Include this line if you are using Godaddy hosting
          RewriteEngine On
          RewriteCond %REQUEST_URI !(.*)subfolder
          RewriteRule ^(.*)$ subfolder/$1 [L]


          another option :



          goto database core_cofig table



          path - admin/url/use_custom set value 0



          path - admin/url/use_custom_path set value 0



          I hope its very helpful to you






          share|improve this answer



























          • Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.

            – Oscar Vazquez
            Jul 30 at 13:27











          • please check my answer, i updated, one more possibility.., than please flush cache.

            – Anas Mansuri
            Jul 30 at 13:38












          • its working for my side.

            – Anas Mansuri
            Jul 30 at 13:45











          • Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.

            – Oscar Vazquez
            Jul 30 at 14:42














          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f283728%2fmagento-2-redirects-url-to-https-but-not-admin-panel%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Please check with below posibilities :




          check with your .htaccess ( url rewrite )



          check your admin base url.




          i.e htaccess :



          Options +FollowSymLinks #Include this line if you are using Godaddy hosting
          RewriteEngine On
          RewriteCond %REQUEST_URI !(.*)subfolder
          RewriteRule ^(.*)$ subfolder/$1 [L]


          another option :



          goto database core_cofig table



          path - admin/url/use_custom set value 0



          path - admin/url/use_custom_path set value 0



          I hope its very helpful to you






          share|improve this answer



























          • Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.

            – Oscar Vazquez
            Jul 30 at 13:27











          • please check my answer, i updated, one more possibility.., than please flush cache.

            – Anas Mansuri
            Jul 30 at 13:38












          • its working for my side.

            – Anas Mansuri
            Jul 30 at 13:45











          • Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.

            – Oscar Vazquez
            Jul 30 at 14:42
















          1














          Please check with below posibilities :




          check with your .htaccess ( url rewrite )



          check your admin base url.




          i.e htaccess :



          Options +FollowSymLinks #Include this line if you are using Godaddy hosting
          RewriteEngine On
          RewriteCond %REQUEST_URI !(.*)subfolder
          RewriteRule ^(.*)$ subfolder/$1 [L]


          another option :



          goto database core_cofig table



          path - admin/url/use_custom set value 0



          path - admin/url/use_custom_path set value 0



          I hope its very helpful to you






          share|improve this answer



























          • Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.

            – Oscar Vazquez
            Jul 30 at 13:27











          • please check my answer, i updated, one more possibility.., than please flush cache.

            – Anas Mansuri
            Jul 30 at 13:38












          • its working for my side.

            – Anas Mansuri
            Jul 30 at 13:45











          • Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.

            – Oscar Vazquez
            Jul 30 at 14:42














          1












          1








          1







          Please check with below posibilities :




          check with your .htaccess ( url rewrite )



          check your admin base url.




          i.e htaccess :



          Options +FollowSymLinks #Include this line if you are using Godaddy hosting
          RewriteEngine On
          RewriteCond %REQUEST_URI !(.*)subfolder
          RewriteRule ^(.*)$ subfolder/$1 [L]


          another option :



          goto database core_cofig table



          path - admin/url/use_custom set value 0



          path - admin/url/use_custom_path set value 0



          I hope its very helpful to you






          share|improve this answer















          Please check with below posibilities :




          check with your .htaccess ( url rewrite )



          check your admin base url.




          i.e htaccess :



          Options +FollowSymLinks #Include this line if you are using Godaddy hosting
          RewriteEngine On
          RewriteCond %REQUEST_URI !(.*)subfolder
          RewriteRule ^(.*)$ subfolder/$1 [L]


          another option :



          goto database core_cofig table



          path - admin/url/use_custom set value 0



          path - admin/url/use_custom_path set value 0



          I hope its very helpful to you







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 30 at 13:38

























          answered Jul 30 at 4:59









          Anas MansuriAnas Mansuri

          1,3602 silver badges16 bronze badges




          1,3602 silver badges16 bronze badges















          • Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.

            – Oscar Vazquez
            Jul 30 at 13:27











          • please check my answer, i updated, one more possibility.., than please flush cache.

            – Anas Mansuri
            Jul 30 at 13:38












          • its working for my side.

            – Anas Mansuri
            Jul 30 at 13:45











          • Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.

            – Oscar Vazquez
            Jul 30 at 14:42


















          • Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.

            – Oscar Vazquez
            Jul 30 at 13:27











          • please check my answer, i updated, one more possibility.., than please flush cache.

            – Anas Mansuri
            Jul 30 at 13:38












          • its working for my side.

            – Anas Mansuri
            Jul 30 at 13:45











          • Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.

            – Oscar Vazquez
            Jul 30 at 14:42

















          Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.

          – Oscar Vazquez
          Jul 30 at 13:27





          Hello, I don't know what i'm doing wrong but this does not work, I put the rule at the end of mod_rewrite.

          – Oscar Vazquez
          Jul 30 at 13:27













          please check my answer, i updated, one more possibility.., than please flush cache.

          – Anas Mansuri
          Jul 30 at 13:38






          please check my answer, i updated, one more possibility.., than please flush cache.

          – Anas Mansuri
          Jul 30 at 13:38














          its working for my side.

          – Anas Mansuri
          Jul 30 at 13:45





          its working for my side.

          – Anas Mansuri
          Jul 30 at 13:45













          Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.

          – Oscar Vazquez
          Jul 30 at 14:42






          Hello, at the end I used this rule and it worked: RedirectMatch permanent "^(/(?!folder/?).*)" subdomain.domain.org/$1 ,I really appreciate your help.

          – Oscar Vazquez
          Jul 30 at 14:42


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f283728%2fmagento-2-redirects-url-to-https-but-not-admin-panel%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form