Remove .html extension from URLs using url rewrite in IIS 8 for html website

Sdílet
Vložit
  • čas přidán 11. 09. 2024
  • By removing .html the extensions from your website, you can make your website user and search engine friendly.
    Download Remove .html extension txt file
    goo.gl/EsCkCl

Komentáře • 20

  • @seansull
    @seansull Před 8 lety

    THANK YOU SO MUCH!! When I look for help with iis, most of the people hosting sites are using nginx or some non-windows based platform, which makes finding help for iis a bit harder. But thanks again, this is probably the most helpful channel when it comes to iis errors!!

    • @SachinSamy
      @SachinSamy  Před 8 lety

      +Sean S You are welcome If you find our tutorials useful Please, consider making a small donation. Even a small amount of money can help us continuing our work Thanks!

  • @danielcampos7559
    @danielcampos7559 Před 7 lety

    I've seen all videos and now I have a better understand of IIS, thank you a lot !!

  • @GregoryMcCarthy123
    @GregoryMcCarthy123 Před 9 lety

    Hi Sachin Samy, great tutorials! You're a great teacher. I just installed a self-signed certificate on my server with your help. Great videos!!

    • @SachinSamy
      @SachinSamy  Před 8 lety

      +Greg McCarthy If you find these tutorials useful
      Please, consider making a small donation. Even a small amount of money can help us continuing our workThanks! :)
      www.itzoz.com/p/donation.html

  • @ioberhenriquedacruz3611
    @ioberhenriquedacruz3611 Před 5 lety +1

    Thank you, from brazil!

  • @loknadhravineni3443
    @loknadhravineni3443 Před 5 lety

    great tutorial please increase the volume of video i had full volume on my pc and youtube window but i could hardly hear and also minimize background sound it will be more great

  • @iamangsherpa
    @iamangsherpa Před 3 lety

    Thank You! You've been a god send :)

  • @stevenquesada35
    @stevenquesada35 Před 2 lety

    What happens if I use a query string parameters ?

  • @jeremyheng8573
    @jeremyheng8573 Před 3 lety

    Thank you! good sharing!

  • @anthonyramos9512
    @anthonyramos9512 Před 4 lety

    Thanks From Perú

  • @rodelbarbin5783
    @rodelbarbin5783 Před 2 lety

    Hi Sachin, thanks for this but after adding the web.config in root directory of my website and where the html file is located. I am getting this error Config Error Cannot add duplicate collection entry of type 'rule' with unique key attribute 'name' set to 'Hide .html ext'. Config File \\?\C:\inetpub\SITES\kas\web.config. Need your help how to fix this error. thanks

  • @eJagatcom
    @eJagatcom Před 5 lety

    what is the solution for Subfolders file?

  • @a4ankit27
    @a4ankit27 Před 8 lety

    Thanks for the video and such a detailed explanations. > However, i am facing a problem. I did exactly the same as you did in this video. I am working on a personal project , but after rewriting the code in web.config file, i get the error in the browser as "This webpage has a redirect loop" "ERR_TOO_MANY_REDIRECTS".
    After googling a little , they asked me to clear the cookies from the chrom browser. It did not work in IE as well. I made sure that a tags have proper hrefs without .html extension.
    Any kind of suggestion would be great :)

  • @BrianReyesFilm
    @BrianReyesFilm Před 7 lety

    Thank you, this worked but now I am no longer able to access the website from inside my network. I host my website internally. I can access the website from outside of the network. Please help.

  • @a4ankit27
    @a4ankit27 Před 8 lety +1

    Ok, So the problem is solved if any one finds the same ... The problem is the directory structure of your project. This video shows the web config setting only if the html files are NOT in any folder and are in the ROOT of the project. In my case all my html files are in a folder called html..
    This is my project directory structure.
    Project Name -> html(folder) -> html files.
    The error that i was getting was "This webpage has a redirect loop" "ERR_TOO_MANY_REDIRECTS". , which was basically telling me too may redirects. . I tried creating an html file in the root and tried to redirect there and BOOM... it worked..
    Now you can always play with finding a solution to that problem.. however i found an easier rewrite rule which takes care of the directory structure.
    Check this out. stackoverflow.com/questions/23374674/remove-html-extension-from-urls-in-windows-server
    This is it !!! MUCH simpler to understand as well

  • @bl4ck_dot
    @bl4ck_dot Před 8 lety

    Thank you