Apache mod_redirect problem

This is a discussion on Apache mod_redirect problem within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm using a shared Apache web server that already hosts two domains. I just recently purchased a domain name, ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-10-2007
Your Best Friend
 
Posts: n/a
Default Apache mod_redirect problem

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.

--
Thanks,
Bryan K
BKWorks Products
http://bkworksproducts.info
To reply, remove .com

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:03 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0