Wordpress url

Discussion in 'General' started by ikrudolf, May 28, 2014.

  1. ikrudolf

    ikrudolf Member

    Hi,
    Is it possible to redirect a site to a wordpress.com url and leave the original url untouched?

    Example: www.mydomain.com redirects to mydomain.wordpress.com but leave the url like www.mydomain.com?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    you can do this with apache mod_proxy. add the proxy directives in the apache directives field of the website in ispconfig.
     
  3. ikrudolf

    ikrudolf Member

    Can you give me some tips to get this working, I'm not familiar how to set the proxy directives
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    1) enable mod_proxy on the shell and then restart apache:

    a2enmod proxy
    a2enmod proxy_http

    2) then add something lke this in the apache directives field:

    Code:
    ProxyRequests Off
    
            <Proxy *>
              Order deny,allow
              Allow from all
            </Proxy>
    
    ProxyPreserveHost   On
    ProxyPass / http://yourblog.com/
    ProxyPassReverse / http://yourblog.com/
    
     
  5. ikrudolf

    ikrudolf Member

    I use http://mydomain1.wordpress.com in ProxyPass and ProxyPassReverse.

    But I get an Wordpress.com error:

     

Share This Page