We have setup and working a redirect to our mobile site/page, which is on the same domain. The issue we are running into is that all images and links that point outside of the /mobile directory appear broken and redirect people right back to only the mobile directory.
How can we serve images/content from directories outside of /mobile and still have html/php content requests go back through our mobile site?
RewriteEngine On
RewriteBase /
#RewriteCond %{HTTP_USER_AGENT} (mobile|blackberry|webos|android|j2me|palm|nokia|samsung|symbian|windows.ce) [NC]
#RewriteCond %{REQUEST_URI} !^
#RewriteRule ^(.*)$ ^mobile [R=302,L]