All my site is working fine, mobile and desktop. But I can't clear any mobile file after update a node, my paths:

cache/
normal/
desktop/
mobile/

Both are created and loaded fine. Even using a rule action I can't clear a mobile file

Comments

RAFA3L’s picture

I'm using this code

http://mobiledrupal.com/simple-apache-configuration-file-mobile-device-d...

But I put all cached files under same path, in the cache folder, because the mobile files have another name, for example:

file_device=mobile-high.html

and desktop files

file_.html

In this way when I update a node all the related cache files are deleted fine, mobile and desktop

But I notice a problem when a node is under a another level, I get a 404 error page not found, for example:

domain.com/level1/level2

I print the $_SERVER['QUERY_STRING'] and show that the node name is duplicated and cause the problem, for example:

q=level1/level2/level2

I think the problem is there but I'm not an expert with mod rewrite

RewriteCond %{HTTP_USER_AGENT} ^.*(iphone|android).*$ [NC]
RewriteRule (.*) $1?device=mobile-high [E=device:mobile-high,QSA,S=1]

any idea? thanks in advanced

RAFA3L’s picture

Issue summary: View changes

after update