APACHE rewrite / redirect URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ampo
    New Member
    • Oct 2008
    • 1

    APACHE rewrite / redirect URL

    Hello.

    I have scenario where a Client send request to Server1.
    Server1 send request to Server2.
    Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client.

    Trying to use APACHE proxy...
    Anyone can help?
    What to download / configure / ...?

    Thank you for your help.
  • itsraghz
    New Member
    • Mar 2007
    • 124

    #2
    I am not very sure of the XMLHTTPRequest you talk about.

    But if it is a just plain redirection you can use apache's standard directive "Rewrite". Just look at the Apache's Documentation for more examples.

    It goes like this in your httpd.conf file

    Code:
    RewriteRule <your-source-string> <new-url-to-redirect>
    Note: You have to turn the Rewrite Engine on for the same as below

    Code:
    RewriteEngine on
    Last edited by itsraghz; Nov 4 '08, 01:41 PM. Reason: syntax change

    Comment

    Working...