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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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! |
|
|||
|
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 |