Forum Moderators: phranque

Message Too Old, No Replies

redirect domain if exist

         

webstyler

11:59 am on Jun 17, 2005 (gmt 0)

10+ Year Member



Hi, I need to make this :

I open www.mydomain.com

here there is htaccess :

"if" there is www.mydomain.com/mydomaincom/
"then" I redirect into
"else" I redirect to /index.html

If correct to make this with htaccess or is best to make it with php?
And how make it with apache rewrite?

thks :)

jdMorgan

4:29 pm on Jul 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Webstyler,

This subject has been previously discussed in-depth. See this recent thread [webmasterworld.com] to get started.

Jim