Remove .html extension from URLs using url rewrite in IIS 8 for html website
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
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!!
+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!
I've seen all videos and now I have a better understand of IIS, thank you a lot !!
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!!
+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
Thank you, from brazil!
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
Thank You! You've been a god send :)
What happens if I use a query string parameters ?
Thank you! good sharing!
Thanks From Perú
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
what is the solution for Subfolders file?
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 :)
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.
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
Thank you
+JB You are welcome