Showing "mydomain.com" if I enter "mydomain.com/index.htm"

39 views Asked by At

Like most servers, if I enter: www.mydomain.com, my server shows www.mydomain.com/index.htm and my Browser continues to show www.mydomain.com

But if I enter into my Browser www.mydomain.com/index.htm, can I tweak htaccess to show www.mydomain.com in my Browser?

1

There are 1 answers

1
Amit Verma On BEST ANSWER

You can use the following

RewriteEngine on

RewriteCond %{THE_REQUEST} /index\.htm [NC]
RewriteRule ^ / [L,R]