Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Actually we have 2 sites.

Site 1: Desktop version hosted in [] , using Apache server

Site2: Mobile version of is hosted in [] , using Apache server.


  • if request comes from desktop browser to it should fetch content of [], and
  • if request comes from mobile browser to it should fetch content of [] , without changing address bar in browser URL

We tried like this in apache/conf/httpd.conf of :

<IfModule proxy_module>
    ProxyRequests On
    ProxyVia On
    <Proxy *>
       Order allow,deny
       Allow from all

    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos" [NC]
    RewriteRule ^(.*)$$1 [P]
    ProxyPassReverse /

When we aceess mysite1 from mobile browser, its able forward the request but not able to map links of theme and pages inside the site.

Please help...

share|improve this question

You must log in to answer this question.

Browse other questions tagged .