Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect a directory to another server

Status
Not open for further replies.
Hello,

Cheers for that. Will that redirect all subdirectories of the directory as well?

Thanks

 
Put this in your httpd.conf
Code:
RedirectPermanent /directory [URL unfurl="true"]http://otherserver/[/URL]
//Daniel
 
Just tried it out and it does indeed redirect. However, would it be possible for the URL to stay as the intial URL and not change to the redirect URL.

Cheers
 
No, not really. You could work around it by creating a script that fetches the URL and outputs the page. //Daniel
 
hmmmm,

It all depends what is actually being used on the other server.

Using 2 servers interacting with each other is a very bad idea when one server is running a little slow, because both
then slow down.

Hope this helps Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Wow wullie, we seem to posted simultaneously both times :). //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top