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

          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