How to Get Vanity Knowledge Base URL as subfolder of my website?

Suppose your example.com knowledge base URL is https://example.myfaqprime.com and you want it to be known as 

 
The above can be achieved by configuring the reverse proxy in the example.com configuration and here are steps - 
 
-- Apache Based Configuration 
  • Create the directory called faq at the https://www.example.com 

  • Add the following lines in the Apache Configuration -

           <Proxy *>
                Order deny,allow
                Allow from all
           </Proxy>

           SSLProxyEngine on
           ProxyPass /faq/  https://example.myfaqprime.com/
           ProxyPassReverse /faq/  https://example.myfaqprime.com/

           # change the example.myfaqprime.com to your given url.

  • Restart the Apache

 

  • NOTE1: For apache 2.4+  "SSLProxyEngine on" would not suffice, here is the new directive 

    • SSLProxyEngine on

    • SSLProxyVerify none 

    • SSLProxyCheckPeerCN off

    • SSLProxyCheckPeerName off

    • SSLProxyCheckPeerExpire off

  • NOTE2: For  ProxyPass and ProxyPassReverse please make sure faq and https://example.myfaqprime.com should always finish with / 

 

-- Nginx Based Configuration  
  • Add the following lines in the nginx Configuration -

           location /faq/ {
               proxy_pass https://example.myfaqprime.com/;
           }

           # change the example.myfaqprime.com to your given url.

  • Restart the nginx i.e. sudo systemctl restart nginx

 

-- .htaccess based configuration 

  • Create the directory called faq at the https://www.example.com 

  • Locate the .htaccess file 

  • Inside the <IfModule mod_rewrite.c> block add the following line.

           RewriteEngine On
           RewriteRule ^/?faq/(.*)$ https://example.myfaqprime.com/$1 [L
,P]

           # change the example.myfaqprime.com to your given url.

           # First line is needed if its not there, if its there then just add the line after "RewriteEngine On" and you are done

0

Did this answer your question?
...