Home › Forums › WordPress Plugins › Hide My WP › Hide Zencache static folder
- This topic has 7 replies, 2 voices, and was last updated 9 years, 8 months ago by
Suman M..
-
AuthorPosts
-
February 24, 2016 at 1:03 pm #8119
Hi,
I using Zencache. Zencache create folder in WP-CONTENT. example: mysite.com/wp-content/zencache/cache
I try to change this folder and move to site root. But this folder structure hard coded in zencache php code.All static cahce and minfied files come from http://mysite.com/wp-content/zencache…
All other url are changed and hidden by HMWP.
I think HMWP can’t change cached content folder.My question:
How can I add outbound rewrite rule to IIS? I want to cahnge all “wp-content/zencache/*” to “static-cache/*”Please help me.
Thanks.
Kristof
February 25, 2016 at 4:43 am #8131Hi, in permalinks & urls tab set “New wp-content path” field to something like “inc”
In “replace in html” option under replace tools tab, add the following replacement:
wp-content/ ==> inc/
February 25, 2016 at 11:28 am #8142Hi Suman,
It’s not working.
Zencache is a last module in HTTP content delivery.
Hyde My WP not affect this last content.
My site is: http://portya.netExample:
“wp-content/scouting-speed/htmlc/public/portya-net/0/c/e/a/2/e5bae3820155eabf8a382f233cd2ed14-compressor-part.js”Please find in source code this cache folder:”scouting-speed”
I have to add URL rewrite rule on OUTBOUND in IIS web server.
How to add wp-content/ ==> inc/ outbound rule?thanks, Kristof
February 25, 2016 at 1:38 pm #8150You don’t need to add wp-content/ ==> inc/ in IIS config. Goto HMWP Replace tools tab, and add it in “replace in html” option boxes.
February 25, 2016 at 1:42 pm #8153Yes, I understand, I added, but it’s not effective.
[WORDPRESS] -> [HMWP] -> [ZENCACHE] -> [FRONTEND USER]
February 25, 2016 at 4:49 pm #8169Hi, please let us know your website’s wp-admin login details (as private reply), so that we can have a look at the issue further.
February 25, 2016 at 7:28 pm #8177Hi,
I find solution.I add this outbound rule to web.config
<outboundRules>
<rule name=”Rewrite cache folder” preCondition=”IsHTML” patternSyntax=”ECMAScript”>
<match filterByTags=”A, Img, Link, Script” pattern=”http://(eu-cdn.)?(portya.net)/(wp-content)/(.*)” />
<action type=”Rewrite” value=”http://{R:1}{R:2}/inc/{R:4}” />
</rule>
<preConditions>
<preCondition name=”IsHTML”>
<add input=”{RESPONSE_CONTENT_TYPE}” pattern=”^text/html” />
</preCondition>
</preConditions>
</outboundRules>Thanks,
Kristof
February 26, 2016 at 5:36 am #8188That’s awesome!
-
AuthorPosts
You must be logged in to reply to this topic.

