Cannot remove “.html” from URL in Magento 2Tried everything to get index.php out of the URL and everything returns Not Found errorRedirecting to Non-SEO Friendly UrlRemove /home url from sitemap and url site structureSlash as category URL suffix gives 404 error on all category pagesMagento 2 Category url rewrite is not workingMagento URL rewrite from SEO friendly URL's to new storeMagento 2 : Product URL rewrite issueMagento 2 URL issuesBreadcrumb generating non seo urlMagento 1.9 - Layered Navigation Links Ending with ?cat= or ?brand=

Do I have a twin with permutated remainders?

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Is it possible to do 50 km distance without any previous training?

What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)

Why, historically, did Gödel think CH was false?

How to find program name(s) of an installed package?

"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

What defenses are there against being summoned by the Gate spell?

What is the word for reserving something for yourself before others do?

What's the point of deactivating Num Lock on login screens?

Is it legal for company to use my work email to pretend I still work there?

US citizen flying to France today and my passport expires in less than 2 months

Risk of getting Chronic Wasting Disease (CWD) in the United States?

Mathematical cryptic clues

How old can references or sources in a thesis be?

To string or not to string

How is it possible to have an ability score that is less than 3?

How do I create uniquely male characters?

TGV timetables / schedules?

What's the output of a record cartridge playing an out-of-speed record

Dragon forelimb placement

How does one intimidate enemies without having the capacity for violence?



Cannot remove “.html” from URL in Magento 2


Tried everything to get index.php out of the URL and everything returns Not Found errorRedirecting to Non-SEO Friendly UrlRemove /home url from sitemap and url site structureSlash as category URL suffix gives 404 error on all category pagesMagento 2 Category url rewrite is not workingMagento URL rewrite from SEO friendly URL's to new storeMagento 2 : Product URL rewrite issueMagento 2 URL issuesBreadcrumb generating non seo urlMagento 1.9 - Layered Navigation Links Ending with ?cat= or ?brand=






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








2















I am trying to remove ".html" from the URL. Attached are my catalog SEO setting in the Magento 2. As you can see I have remove the ".html" from both Category URL Suffix and Product URL Suffix.
enter image description here
I'm stumped as to why it still shows the .html at the end. I have cleared all caches and reindexed all indexes.










share|improve this question






















  • Delete var folder from root and check it after browser cache.

    – Suresh Chikani
    Sep 28 '16 at 7:33











  • I deleted everything in the root var folder, cleared all caches and it still shows .html at the end of product URL's even though it's removed from the product suffix.

    – Tim K.
    Sep 29 '16 at 2:45











  • We could not even remove the .html suffix as it presented some duplicate entry error.

    – Webninja
    Nov 8 '16 at 20:27

















2















I am trying to remove ".html" from the URL. Attached are my catalog SEO setting in the Magento 2. As you can see I have remove the ".html" from both Category URL Suffix and Product URL Suffix.
enter image description here
I'm stumped as to why it still shows the .html at the end. I have cleared all caches and reindexed all indexes.










share|improve this question






















  • Delete var folder from root and check it after browser cache.

    – Suresh Chikani
    Sep 28 '16 at 7:33











  • I deleted everything in the root var folder, cleared all caches and it still shows .html at the end of product URL's even though it's removed from the product suffix.

    – Tim K.
    Sep 29 '16 at 2:45











  • We could not even remove the .html suffix as it presented some duplicate entry error.

    – Webninja
    Nov 8 '16 at 20:27













2












2








2








I am trying to remove ".html" from the URL. Attached are my catalog SEO setting in the Magento 2. As you can see I have remove the ".html" from both Category URL Suffix and Product URL Suffix.
enter image description here
I'm stumped as to why it still shows the .html at the end. I have cleared all caches and reindexed all indexes.










share|improve this question














I am trying to remove ".html" from the URL. Attached are my catalog SEO setting in the Magento 2. As you can see I have remove the ".html" from both Category URL Suffix and Product URL Suffix.
enter image description here
I'm stumped as to why it still shows the .html at the end. I have cleared all caches and reindexed all indexes.







magento2 url-rewrite seo






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 27 '16 at 17:17









Tim K.Tim K.

413




413












  • Delete var folder from root and check it after browser cache.

    – Suresh Chikani
    Sep 28 '16 at 7:33











  • I deleted everything in the root var folder, cleared all caches and it still shows .html at the end of product URL's even though it's removed from the product suffix.

    – Tim K.
    Sep 29 '16 at 2:45











  • We could not even remove the .html suffix as it presented some duplicate entry error.

    – Webninja
    Nov 8 '16 at 20:27

















  • Delete var folder from root and check it after browser cache.

    – Suresh Chikani
    Sep 28 '16 at 7:33











  • I deleted everything in the root var folder, cleared all caches and it still shows .html at the end of product URL's even though it's removed from the product suffix.

    – Tim K.
    Sep 29 '16 at 2:45











  • We could not even remove the .html suffix as it presented some duplicate entry error.

    – Webninja
    Nov 8 '16 at 20:27
















Delete var folder from root and check it after browser cache.

– Suresh Chikani
Sep 28 '16 at 7:33





Delete var folder from root and check it after browser cache.

– Suresh Chikani
Sep 28 '16 at 7:33













I deleted everything in the root var folder, cleared all caches and it still shows .html at the end of product URL's even though it's removed from the product suffix.

– Tim K.
Sep 29 '16 at 2:45





I deleted everything in the root var folder, cleared all caches and it still shows .html at the end of product URL's even though it's removed from the product suffix.

– Tim K.
Sep 29 '16 at 2:45













We could not even remove the .html suffix as it presented some duplicate entry error.

– Webninja
Nov 8 '16 at 20:27





We could not even remove the .html suffix as it presented some duplicate entry error.

– Webninja
Nov 8 '16 at 20:27










3 Answers
3






active

oldest

votes


















0














I had the same issue,



for me, all pages are working except the home page.



I did all the all settings and reindexed, cache cleared etc, but the error remained.
so finally found the solution for this issue



remove "noroute" from "Default No-route URL" field under Default Page in Stores -> Configuration -> web.



Finally, filed value ll be "cms/index".



this may help one day for someone.






share|improve this answer






























    0














    Here are the steps to solve the issue:



    • Backup your current Magento2 database


    • Delete all records from table url_rewrite. You can run the following SQL command:



      DELETE FROM url_rewrite WHERE entity_type = 'product';


    • Login to your Magento 2 backend


    • Re-save all your Categories

    • Clean the Magento2 cache

    • Now, you should be able to save/update the Product URL Suffix in the Configuration Settings.





    share|improve this answer






























      0














      This worked for me:



      UPDATE `url_rewrite` SET `request_path` = REPLACE(`request_path`, ".html", "")


      It simply removes the .html suffix from the URL rewrites table. You then need to reindex after.






      share|improve this answer








      New contributor




      Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















        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%2f138317%2fcannot-remove-html-from-url-in-magento-2%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0














        I had the same issue,



        for me, all pages are working except the home page.



        I did all the all settings and reindexed, cache cleared etc, but the error remained.
        so finally found the solution for this issue



        remove "noroute" from "Default No-route URL" field under Default Page in Stores -> Configuration -> web.



        Finally, filed value ll be "cms/index".



        this may help one day for someone.






        share|improve this answer



























          0














          I had the same issue,



          for me, all pages are working except the home page.



          I did all the all settings and reindexed, cache cleared etc, but the error remained.
          so finally found the solution for this issue



          remove "noroute" from "Default No-route URL" field under Default Page in Stores -> Configuration -> web.



          Finally, filed value ll be "cms/index".



          this may help one day for someone.






          share|improve this answer

























            0












            0








            0







            I had the same issue,



            for me, all pages are working except the home page.



            I did all the all settings and reindexed, cache cleared etc, but the error remained.
            so finally found the solution for this issue



            remove "noroute" from "Default No-route URL" field under Default Page in Stores -> Configuration -> web.



            Finally, filed value ll be "cms/index".



            this may help one day for someone.






            share|improve this answer













            I had the same issue,



            for me, all pages are working except the home page.



            I did all the all settings and reindexed, cache cleared etc, but the error remained.
            so finally found the solution for this issue



            remove "noroute" from "Default No-route URL" field under Default Page in Stores -> Configuration -> web.



            Finally, filed value ll be "cms/index".



            this may help one day for someone.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 12 '18 at 12:14









            Shameem Ali P.KShameem Ali P.K

            266




            266























                0














                Here are the steps to solve the issue:



                • Backup your current Magento2 database


                • Delete all records from table url_rewrite. You can run the following SQL command:



                  DELETE FROM url_rewrite WHERE entity_type = 'product';


                • Login to your Magento 2 backend


                • Re-save all your Categories

                • Clean the Magento2 cache

                • Now, you should be able to save/update the Product URL Suffix in the Configuration Settings.





                share|improve this answer



























                  0














                  Here are the steps to solve the issue:



                  • Backup your current Magento2 database


                  • Delete all records from table url_rewrite. You can run the following SQL command:



                    DELETE FROM url_rewrite WHERE entity_type = 'product';


                  • Login to your Magento 2 backend


                  • Re-save all your Categories

                  • Clean the Magento2 cache

                  • Now, you should be able to save/update the Product URL Suffix in the Configuration Settings.





                  share|improve this answer

























                    0












                    0








                    0







                    Here are the steps to solve the issue:



                    • Backup your current Magento2 database


                    • Delete all records from table url_rewrite. You can run the following SQL command:



                      DELETE FROM url_rewrite WHERE entity_type = 'product';


                    • Login to your Magento 2 backend


                    • Re-save all your Categories

                    • Clean the Magento2 cache

                    • Now, you should be able to save/update the Product URL Suffix in the Configuration Settings.





                    share|improve this answer













                    Here are the steps to solve the issue:



                    • Backup your current Magento2 database


                    • Delete all records from table url_rewrite. You can run the following SQL command:



                      DELETE FROM url_rewrite WHERE entity_type = 'product';


                    • Login to your Magento 2 backend


                    • Re-save all your Categories

                    • Clean the Magento2 cache

                    • Now, you should be able to save/update the Product URL Suffix in the Configuration Settings.






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 17 at 7:37









                    Mukesh ChapagainMukesh Chapagain

                    3,88612243




                    3,88612243





















                        0














                        This worked for me:



                        UPDATE `url_rewrite` SET `request_path` = REPLACE(`request_path`, ".html", "")


                        It simply removes the .html suffix from the URL rewrites table. You then need to reindex after.






                        share|improve this answer








                        New contributor




                        Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.
























                          0














                          This worked for me:



                          UPDATE `url_rewrite` SET `request_path` = REPLACE(`request_path`, ".html", "")


                          It simply removes the .html suffix from the URL rewrites table. You then need to reindex after.






                          share|improve this answer








                          New contributor




                          Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






















                            0












                            0








                            0







                            This worked for me:



                            UPDATE `url_rewrite` SET `request_path` = REPLACE(`request_path`, ".html", "")


                            It simply removes the .html suffix from the URL rewrites table. You then need to reindex after.






                            share|improve this answer








                            New contributor




                            Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.










                            This worked for me:



                            UPDATE `url_rewrite` SET `request_path` = REPLACE(`request_path`, ".html", "")


                            It simply removes the .html suffix from the URL rewrites table. You then need to reindex after.







                            share|improve this answer








                            New contributor




                            Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            share|improve this answer



                            share|improve this answer






                            New contributor




                            Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            answered Apr 3 at 16:47









                            Matthew InamdarMatthew Inamdar

                            11




                            11




                            New contributor




                            Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.





                            New contributor





                            Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






                            Matthew Inamdar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.



























                                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%2f138317%2fcannot-remove-html-from-url-in-magento-2%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

                                Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?