RewriteRule to create a default document

Topics: Developer Forum
Sep 26, 2014 at 8:01 PM
This is what I wrote so far for Iirf.ini:
RewriteEngine On

RewriteRule ^([^\.]+)$ $1.htm [NC,L]
#RewriteRule ^?$ /default.htm
It basically just takes http://www.mydomain.com/abc and turns it into http://www.mydomain.com/abc.htm

But I need something to make http://www.mydomain.com/abc rewrite to http://www.mydomain.com/default.htm

I thought the commented out code in the example above would do that, but it doesn't work. I'm not sure what URL I am ending up with, either.

With .htaccess I am able to add "DirectoryIndex default.htm" but that does not appear to be valid code for IIRF.

There must be some easy way to do what I'm trying to do here? Would really appreciate any advice.

Thanks!