ReWriting URLS

This is a discussion on ReWriting URLS within the Apache Web Server forums, part of the Web Server and Related Forums category; OK. This is what I have I have 2 domains www.mydomain.com and www.mydomain.net Both of them ...


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-19-2003
Todd Beauchemin
 
Posts: n/a
Default ReWriting URLS

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. :(
Can this be done.. is it a problem with my regular expression?
or am I missing another directive.

Thanks
~Todd


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 05:28 PM.


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