Home.htm doesn't not work

Topics: User Forum
Apr 18, 2007 at 11:29 PM
I have sucessfully rewrite this:
RewriteRule ^/home\.htm$ /Products.asp L,I

It is working nicely BUT when i set up my server to make home.htm my home default page, the rewrite rule doesn't work. You just go to www.mydomain.com and nothing happens, it is like ionic stopped working. But if you type www.mydomain.com/home.htm then the rule works and products.asp show up.

Could you please help me to solve this. Is it possible for Ionics to do it applying some rule?

Many thanks.
Apr 21, 2007 at 9:44 AM
Please, Please help me out!!!!
Many thanks.
Apr 21, 2007 at 2:51 PM
maybe using

RewriteCond %{HTTP_HOST}
RewriteRule ^/home\.htm$ /products.asp L,I

Not sure if the above would work

Or better yet...just rename the file Products.asp into default.asp and make default.asp your default home page. No need to rewrite anything and make things more complicated.

On the other hand you can also make an empty default.asp page, and within it just do the following:

<% Server.Transfer ("products.asp") %>

What happens then is when you hit the default.asp page, the server transfers the processing to products.asp as if default.asp was running it. No redirect needed.

You can also setup IIS to process htm pages as ASP, but at a performance cost...

just some thoughts.