URL Masking or Reversed Proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amrkhan
    New Member
    • Oct 2017
    • 1

    URL Masking or Reversed Proxy

    I want to host Wordpress blog on different server with different domain name like (wordpressblog. com) and I want to show it on my main domain like(maindomain .com/blog) my main domain is hosted on other server, so I want when user visit the blog they see this link (maindomain.com/blog) not the (wordpressblog. com) and when they visit other pages or posts the url show (maindomain.com/blog/post-name/)

    Please help me with it I only heard about two things, 1- Link masking 2 Reversed Proxy.
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    I you are using Apache as a webserver, than the first example in the docs is pretty simple (changed taking into account your input):
    Code:
    ProxyPass "/blog" "http://wordpressblog.com"
    ProxyPassReverse "/blog" "http://wordpressblog.com"

    Comment

    Working...