Apache Webserver Help

Discussion in 'Computer Support' started by YourBestFriend, Jul 10, 2007.

  1. I'm using a shared Apache web server that already hosts two domains. I
    just recently purchased a domain name, and forwarded it to my previous
    domain's root directory. Now, what I would like to do is whenever this
    domain is visited, I would like Apache to automatically 'redirect' to
    another folder inside of my previous domains' root folder. For
    example: all of my domains root folders are public_html. Now, inside
    of public_html, I have another folder called 'domain2.' Is there a way
    to have Apache automatically forward domain2 to the domain2 folder,
    yet keeping 'domain2' in the address bar? I have been playing around
    with the mod_rewrite using a .htaccess file in the public_html folder,
    but all I can get it to do is forward to the new URL, also changing it
    in the address bar.
     
    YourBestFriend, Jul 10, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gilbert T. Gutierrez, Jr.
    Replies:
    0
    Views:
    580
    Gilbert T. Gutierrez, Jr.
    Oct 21, 2003
  2. Helmut Wollmersdorfer.at
    Replies:
    1
    Views:
    1,042
  3. SunYau

    Help in Install Apache 2.0!!

    SunYau, Dec 29, 2003, in forum: Computer Support
    Replies:
    2
    Views:
    389
  4. avidfan
    Replies:
    0
    Views:
    5,905
    avidfan
    Nov 28, 2004
  5. whoisthis

    Apache proxy help please

    whoisthis, Apr 1, 2007, in forum: NZ Computing
    Replies:
    7
    Views:
    753
    whoisthis
    Apr 2, 2007
Loading...

Share This Page