Forum Moderators: phranque

Message Too Old, No Replies

Apache URL redirects.

         

stuart100

6:18 pm on May 4, 2005 (gmt 0)



Ok I will begin by saying that I am a complete Apache Noob. It is my first taste with PHP and Apache and so far so good. I was hoping you guys could help me.

Here is my setup...

Apache(of course)
www.domain1.com

www.domain2.com

Directories
*root*\domain1
*root*\domain2

I need anything coming in on www.domain1.com to goto /domain1/index.php

And anything on www.domain2.com to goto /domain2/index.php

I have seached google and forums and you name it and I am clear on where to start or what to do. What I have learned so far is that a rewrite of some type needs done and that I have to alter the htaccess file.

Any help would be great...sorry if this is a stupid question.

John Evans

jdMorgan

7:38 pm on May 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



John,

Welcome to WebmasterWorld!

This recent thread [webmasterworld.com] may help you get started.

Jim