Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

ReWriting URLS

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Author Message
marauder328

External


Since: Jul 19, 2003
Posts: 4



(Msg. 1) Posted: Sat Jul 19, 2003 8:34 pm
Post subject: ReWriting URLS
Archived from groups: alt>apache>configuration (more info?)

OK. This is what I have
I have 2 domains www.mydomain.com and www.mydomain.net
Both of them are pointing to the same base-directory using the same
index file. What I want to do is make it so that every request
for www.mydomain.com get rewrote as consulting.mydomain.net

I have the following in my .htaccess file in the base directory

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com
RewriteRule ^/(.*) http://consulting.mydomain.net/$1 [R,L]

However, nothing seems to be happening. Sad
Can this be done.. is it a problem with my regular expression?
or am I missing another directive.

Thanks
~Todd

 >> Stay informed about: ReWriting URLS 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]