Redirect setup question.

This is a discussion on Redirect setup question. within the Apache Web Server forums, part of the Web Server and Related Forums category; I've been doing some research on the best way to do this and so far I've found the ...


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 12-11-2003
Melissa
 
Posts: n/a
Default Redirect setup question.

I've been doing some research on the best way to do this and so far
I've found the best information here so before I make a chance to our
web server I thought I'd run it by you before I do it just to make
sure I've understood what you've been saying. (And to make sure I've
understood what I've read).

We used to have an IIS server hosting all our web pages. Due to all
the security problems we've had (big suprise) we've moved the main
pages to our new Apache Linux Server. Due to bueracracy though not
all the pages are being moved over to the new server. When the switch
was made the window's machine dns original.dns.example got moved to
the linux box and the windows machine was assigned a new dns
new.dns.example.

I believe in order for someone looking for the page
original.dns.example/research to get redirected to
new.dns.example/research all I need to do is add the line:

redirect permanent /research http://new.dns.example/research

This way if someone is looking for
original.dns.example/research/images/image1.jpg they will
automatically be redirected to
new.dns.example/research/images/image1.jpg.


Am I understanding this correctly and will this work to redirect all
the subdirectories and files like I have in the example or am I way
off base?

Thanks for all your help,
Mel
  #2 (permalink)  
Old 12-11-2003
Davide Bianchi
 
Posts: n/a
Default Re: Redirect setup question.

Melissa <delpayne@yahoo.com> wrote:
> redirect permanent /research http://new.dns.example/research
> This way if someone is looking for
> original.dns.example/research/images/image1.jpg they will
> automatically be redirected to
> new.dns.example/research/images/image1.jpg.


Correct. What is going to happen is that the browser will receive
a response that will make him reform the query to the new server,
actually leaving the old one. I'm not sure if this is what you
really want.

Davide
  #3 (permalink)  
Old 12-11-2003
Melissa
 
Posts: n/a
Default Re: Redirect setup question.

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<bragle$182am$1@ID-18487.news.uni-berlin.de>...
> Melissa <delpayne@yahoo.com> wrote:
> > redirect permanent /research http://new.dns.example/research
> > This way if someone is looking for
> > original.dns.example/research/images/image1.jpg they will
> > automatically be redirected to
> > new.dns.example/research/images/image1.jpg.

>
> Correct. What is going to happen is that the browser will receive
> a response that will make him reform the query to the new server,
> actually leaving the old one. I'm not sure if this is what you
> really want.
>
> Davide


Yeah thats what I want to do. At least untill we can get all the
sites moved over to the linux box.
Thanks!
  #4 (permalink)  
Old 12-12-2003
Davide Bianchi
 
Posts: n/a
Default Re: Redirect setup question.

Melissa <delpayne@yahoo.com> wrote:
> Yeah thats what I want to do. At least untill we can get all the
> sites moved over to the linux box.


Have you considered the use of mod_proxy to server IIS pages
trought Apache?

Davide
  #5 (permalink)  
Old 12-16-2003
Melissa
 
Posts: n/a
Default Re: Redirect setup question.

Davide Bianchi
> Melissa wrote:
> > Yeah thats what I want to do. At least untill we can get all the
> > sites moved over to the linux box.

>
> Have you considered the use of mod_proxy to server IIS pages
> trought Apache?
>
> Davide


I hadn't really thought of that. We kind of set the machine up in a
hurry because it was a spur of the moment change and I havn't really
had a chance to read through all the apache doc's yet. Thanks for the
suggestion.

Melissa
 
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 10:34 PM.


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