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

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

Sachin Samy

8 лет назад

17,928 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Music and Dance Entertainment
Music and Dance Entertainment - 28.06.2022 06:21

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

Ответить
Steven Quesada
Steven Quesada - 19.04.2022 18:43

What happens if I use a query string parameters ?

Ответить
Jeremy Heng
Jeremy Heng - 22.07.2021 18:30

Thank you! good sharing!

Ответить
Ang Sherpa
Ang Sherpa - 09.12.2020 02:34

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

Ответить
Anthony Ramos
Anthony Ramos - 22.05.2020 04:33

Thanks From Perú

Ответить
Rupesh Bhade
Rupesh Bhade - 23.06.2019 14:29

what is the solution for Subfolders file?

Ответить
Iober Henrique da Cruz
Iober Henrique da Cruz - 25.05.2019 21:02

Thank you, from brazil!

Ответить
Brian Reyes
Brian Reyes - 28.07.2017 00:33

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.

Ответить
Daniel Campos
Daniel Campos - 24.02.2017 00:09

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

Ответить
bl4ckdot
bl4ckdot - 10.02.2016 23:03

Thank you

Ответить
Sean S
Sean S - 27.01.2016 05:25

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!!

Ответить
Ankit Jain
Ankit Jain - 20.12.2015 22:53

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 :)

Ответить
Greg McCarthy
Greg McCarthy - 26.10.2015 03:29

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!!

Ответить