Forum Moderators: phranque

Message Too Old, No Replies

rewrite domain.com to domain.com/domain.html

rewrite domain.com to domain.com/domain.html

         

WinStart

12:08 am on Jan 22, 2009 (gmt 0)

10+ Year Member



Hi, this is my first post.
I have many domain as alias.
what I need is
when someone type:
domain.com in browser it should go to
domain/domain.html
domain.com can be just any domain (hate.me goes to hate.me/hate.html)

but if some one type:
domain.com/whatever.html
then the roule should do nothing
(have other RewriteRule taking care of that).

thanks

g1smd

1:56 am on Jan 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What do you mean by "go to"?

Do you mean redirect to a new URL, or rewrite to a different internal location?

The difference between a redirect and a rewrite is crucial here.

WinStart

11:45 am on Jan 22, 2009 (gmt 0)

10+ Year Member



Hi g1smd
thank you for the reply.
redirect will be the best solution.