0

I have 2 website in 2 different servers,

  • http://www.example.com is the mainsite (dotnet)

  • http://help.example.com is a microsite (wordpress)

    RewriteEngine On
    RewriteRule ^ index.php [L]
    RewriteRule ^/help(.*)$ http://help.faceoff.com/ [L]
    

With the above configuration, when user go to http://www.example.com/help it will redirect to the http://help.example.com/.

Is it possible to have the http://www.example.com/help in the URL bar, but serving content from http://help.example.com/?

MrWhite
  • 43,179
  • 8
  • 60
  • 84
Alvin
  • 8,219
  • 25
  • 96
  • 177
  • You will need to proxy the request, either using the mod_rewrite `P` flag, https://stackoverflow.com/q/29618591/1427878, or via mod_proxy, https://stackoverflow.com/q/26573844/1427878 – CBroe Mar 02 '23 at 06:55
  • That means you need to have the proxy module loaded into your apache http server. – arkascha Mar 02 '23 at 08:14
  • It's stated that the "mainsite" (where the _reverse proxy_ would need to be implemented) uses "dotnet", so it would seem unlikely to be Apache? – MrWhite Mar 02 '23 at 15:29

0 Answers0