Forum Moderators: phranque

Message Too Old, No Replies

redirecting from canonical domain name

         

Eddie1506

3:10 pm on Apr 18, 2004 (gmt 0)

10+ Year Member



is there a way to redirect any clicks from [server1.com...] to [server2.com...] including directory and file structure?

for example, if someone goes to [server1.com...] it would redirect him to [server2.com...]

server1.com is canonical name for server2.com and it is not working how it is suposed to work, so i want to redirect all traffic from server1.com to server2.com

TIA

lemat

11:26 pm on Apr 18, 2004 (gmt 0)

10+ Year Member



the easiest way is to change A records in your DNS and make virtualhost

you can also use
RewriteEngine On
RewriteRule /dir1/(.*) [server2...] [R]

(I haven't checked it, it may be faulty, but you have the point where you can start searching the manual)