sdnet
08-01-2006, 08:44 PM
I hope this is the right forum to post this. I'm looking for some help writing a mod_rewrite rule that redirects all users from a domain to an IP address. So, if you enter the following URL:
http://www.somedomain.com
The server will call:
http://111.111.111.1111/sites/somedomain.com
And, if you enter the following URL:
http://www.somedomain.com/dir/page.html
The server will call:
http://111.111.111.1111/sites/somedomain.com/dir/page.html
I know this is possible, but I'm not sure of how the re_write rule is structured.
Thanks.
http://www.somedomain.com
The server will call:
http://111.111.111.1111/sites/somedomain.com
And, if you enter the following URL:
http://www.somedomain.com/dir/page.html
The server will call:
http://111.111.111.1111/sites/somedomain.com/dir/page.html
I know this is possible, but I'm not sure of how the re_write rule is structured.
Thanks.
