But then the address would change to http://webserver2/index.ph
Main Topics
Browse All TopicsHello!
We have two different webserver (webserver1 running Win2000 and webserver 2 running Ubuntu with apache2) which are both hosting a website. We would like to rewrite a subfolder on webserver 1 (webserver1/wiki/) to redirect all traffic to webserver2.
We tried to use ISAPI_Rewrite with the following code:
RewriteProxy wiki(.*) http\://webserver2$1
Unfortunately, the application running on webserver2 is using absolute paths for their links, so webserver1/wiki/index.php contains links like: /index.php?title=&
When clicking on such a link, the user receives a 404 FileNotFound as http://webserver1/index.ph
The thing we would need is either to insert /wiki in front of all these links or to make them relative. Any ideas?
What would be the best approach? Are there alternatives to ISAPI_Rewrite?
Thanks a lot!
Tobias
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
But then the address would change to http://webserver2/index.ph
on webserver1 (OS Win2K). What is the webserver running on this machine? IIS? or Apache.
If it is running some version of Apache, you could look at Apache reverse proxy implementation.
http://httpd.apache.org/do
Specifically, look at ProxyPass and ProxyPassReverse directives.
- http://httpd.apache.org/do
- http://httpd.apache.org/do
For example, you need to load the proxy module, and add the following directives
ProxyPass /wiki http://webserver2.domain.c
ProxyPassReverse /wiki http://webserver2.domain.c
Alternately, you could look at mod_rewrite to rewrite the URL.
With ProxyPass and mod_rewrite, the URL would not changed, so the client should stay at http://webserver1.domain.c
If it's running IIS -- :( I am not that well verse with IIS.
cheeers.
Business Accounts
Answer for Membership
by: adworldmediaPosted on 2007-10-16 at 05:51:46ID: 20085019
Have you thought of using a redirect script on the default.htm or index.htm page in that folder that will redirect the client browser to the new location?
m/dynamici ndex9/bred irect.htm
You can find an excellent redirect script at http://www.dynamicdrive.co
-Joe