5need
06-24-2004, 09:57 AM
Hello !
I have a server and i would to make anyone request ip in a server then it automatic redirect him to other for exmple :-
Some one Request : 66.66.66.66/files
Then i would to to redirect it to
66.55.44.11.files
My Server OS : RH9
Thanks you
zupanm
06-24-2004, 11:23 AM
try to add this into a .htaccess file in the files dir
RewriteEngine on
RewriteRule (.+) http://66.55.44.11/files/$1 [R,L]
5need
06-24-2004, 11:39 PM
Hello ,
That Just will redirect the files dir i mean all dirs man like that
Some one enter to 66.66.66.66/*
it's redirect him to 66.55.44.11/*
Just i want that
And Thanks you
zupanm
06-25-2004, 07:24 AM
RewriteEngine on
RewriteRule (.+) http://66.55.44.11/$1 [R,L]
but that in the root dir
Kyndig
06-25-2004, 08:08 AM
Originally posted by 5need
Hello !
I have a server and i would to make anyone request ip in a server then it automatic redirect him to other for exmple :-
Some one Request : 66.66.66.66/files
Then i would to to redirect it to
66.55.44.11.files
My Server OS : RH9
Thanks you
<VirtualHost 66.66.66.66>
Redirect / http://66.55.44.11
</VirtualHost>
will redirect all webserver related traffic to that website, to include any urls they enter...
if you're looking for full IP based forwarding, you can write this rule up with IPTABLES.
apollo
06-26-2004, 09:13 AM
<virtualhost 66.66.66.66>
RewriteEngine On
RewriteRule ^/folder/(.+) h_ttp://66.66.66.61/folder/$1 [R=302,L]
</virtualhost>
replace h_ttp with http...
Requests will be redirected with "Temporaly moving" header...
You will need to compile rewrite module in apache....