Magento 2 EE remove url trailing slash through htaccess Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm 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

Why is water being consumed when my shutoff valve is closed?

Why did Europeans not widely domesticate foxes?

Israeli soda type drink

How to keep bees out of canned beverages?

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

What is /etc/mtab in Linux?

Can gravitational waves pass through a black hole?

How to begin with a paragraph in latex

When I export an AI 300x60 art board it saves with bigger dimensions

What were wait-states, and why was it only an issue for PCs?

What to do with someone that cheated their way though university and a PhD program?

What is the purpose of the side handle on a hand ("eggbeater") drill?

Will I be more secure with my own router behind my ISP's router?

How was Lagrange appointed professor of mathematics so early?

Why did Israel vote against lifting the American embargo on Cuba?

What does the black goddess statue do and what is it?

Eigenvalues of the Laplacian of the directed De Bruijn graph

Was there ever a LEGO store in Miami International Airport?

A journey... into the MIND

What is ls Largest Number Formed by only moving two sticks in 508?

How to translate "red flag" into Spanish?

Is there a possibility to generate a list dynamically in Latex?

Suing a Police Officer Instead of the Police Department

Is it accepted to use working hours to read general interest books?



Magento 2 EE remove url trailing slash through htaccess



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm 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 Apr 19 at 6:59







      chanchal

















      asked Apr 19 at 4:56









      chanchalchanchal

      458




      458




















          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

          Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

          БиармияSxpst500bh2ntaf! 3h2r