Redirect Index.html to root

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 10
Joined: 20 Nov 2012, 10:56

Redirect Index.html to root

14 Sep 2015, 10:56

Hello,

My default page for the website into IIS is index.html.

When people are on root, http://www.domain.com, i need people don't see the index.html

So i need to redirect http://www.domain.com/index.html to http://www.domain.com

When i try to create a rule for it, i have got an error for infinite loop.

Could you help me to create the good redirection rule ?

Thks a lot
BR
Patrice

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Redirect Index.html to root

14 Sep 2015, 21:58

Hello Patrice,

Please try the following config:

RewriteBase /
RewriteRule ^/?$ /index.html [L]
RewriteRule ^index.html$ / [NC,R=301,NS,L]

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 20 guests