Magento 2 EE remove url trailing slash through htaccess Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Internal links to end with a trailing slashWhy do special characters in search terms are processed as encoded characters (only on Production Server)?Remove trailing slash - Not just using htaccesshtaccess Rewriterule to remove trailing slashFirefox adding trailing slash and the URL breaksRemove trailing slash in canonical url for Magento home pageRemove last trailing slash from urlTrailing slash problemMagento 2 - URLs trailing slash redirectionHow to remove trailing slash from Magento 2 url

.bashrc alias for a command with fixed second parameter

How do I say "this must not happen"?

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

How do Java 8 default methods hеlp with lambdas?

What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?

Should man-made satellites feature an intelligent inverted "cow catcher"?

Understanding piped commands in GNU/Linux

How to name indistinguishable henchmen in a screenplay?

Why complex landing gears are used instead of simple, reliable and light weight muscle wire or shape memory alloys?

Did pre-Columbian Americans know the spherical shape of the Earth?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Is this Half-dragon Quaggoth boss monster balanced?

Is there a spell that can create a permanent fire?

How to make triangles with rounded sides and corners? (squircle with 3 sides)

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

How to achieve cat-like agility?

How could a hydrazine and N2O4 cloud (or it's reactants) show up in weather radar?

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

Is the Mordenkainen's Sword spell underpowered?

How many time has Arya actually used Needle?

Statistical analysis applied to methods coming out of Machine Learning

First paper to introduce the "principal-agent problem"



Magento 2 EE remove url trailing slash through htaccess



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Internal links to end with a trailing slashWhy do special characters in search terms are processed as encoded characters (only on Production Server)?Remove trailing slash - Not just using htaccesshtaccess Rewriterule to remove trailing slashFirefox adding trailing slash and the URL breaksRemove trailing slash in canonical url for Magento home pageRemove last trailing slash from urlTrailing slash problemMagento 2 - URLs trailing slash redirectionHow to remove trailing slash from Magento 2 url



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








2















I am using below code in htaccess to remove trailing slash in urls. But after adding this code my admin panel stops working and shows error - Too many redirects.
I don't know whether to place this code within any IfModule block or not.



# remove trailing slash
RewriteCond %REQUEST_FILENAME !-d
RewriteCond %THE_REQUEST s(.+?)/+[?s]
RewriteRule ^(.+?)/$ /$1 [R=301,L]


Please provide a solution.










share|improve this question






























    2















    I am using below code in htaccess to remove trailing slash in urls. But after adding this code my admin panel stops working and shows error - Too many redirects.
    I don't know whether to place this code within any IfModule block or not.



    # remove trailing slash
    RewriteCond %REQUEST_FILENAME !-d
    RewriteCond %THE_REQUEST s(.+?)/+[?s]
    RewriteRule ^(.+?)/$ /$1 [R=301,L]


    Please provide a solution.










    share|improve this question


























      2












      2








      2








      I am using below code in htaccess to remove trailing slash in urls. But after adding this code my admin panel stops working and shows error - Too many redirects.
      I don't know whether to place this code within any IfModule block or not.



      # remove trailing slash
      RewriteCond %REQUEST_FILENAME !-d
      RewriteCond %THE_REQUEST s(.+?)/+[?s]
      RewriteRule ^(.+?)/$ /$1 [R=301,L]


      Please provide a solution.










      share|improve this question
















      I am using below code in htaccess to remove trailing slash in urls. But after adding this code my admin panel stops working and shows error - Too many redirects.
      I don't know whether to place this code within any IfModule block or not.



      # remove trailing slash
      RewriteCond %REQUEST_FILENAME !-d
      RewriteCond %THE_REQUEST s(.+?)/+[?s]
      RewriteRule ^(.+?)/$ /$1 [R=301,L]


      Please provide a solution.







      magento2 url htaccess






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago







      chanchal

















      asked 2 days ago









      chanchalchanchal

      407




      407




















          0






          active

          oldest

          votes












          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%2f270724%2fmagento-2-ee-remove-url-trailing-slash-through-htaccess%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f270724%2fmagento-2-ee-remove-url-trailing-slash-through-htaccess%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

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

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?