Title: Auto minify creating wrong src in html
Last modified: August 21, 2016

---

# Auto minify creating wrong src in html

 *  [benjamin.anakena](https://wordpress.org/support/users/benjaminanakena/)
 * (@benjaminanakena)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/auto-minify-creating-wrong-src-in-html/)
 * Hi,
    I’ve just installed w3-total-cache to try it out and I found a few bugs 
   with the minify feature. First, as it is told in another thread, I’m getting 
   a filename length error when I have the automatic filename test enabled. I’ve
   disabled it and set the filename length to 246 and it seems to create the minified
   files correctly. But the href from the stylesheet and the src from the script
   are incorrect. I’m getting “${host}/blog**/wp/-content/**cache/minify/000000/…”
   instead of “${host}/blog**/wp-content/**cache/minify/000000/…” If I correct the
   link in the browser url the files are correctly returned. I’m using a remote 
   memcached as storage and my wordpress installation has the particularity that
   I have moved the wp-content folder to the parent folder. -> /blog/ —> /blog/wp/—–
   > /blog/wp/wp-includes/ —–> /blog/wp/wp-admin/ —> /blog/wp-content/
 * Thanks
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [benjamin.anakena](https://wordpress.org/support/users/benjaminanakena/)
 * (@benjaminanakena)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/auto-minify-creating-wrong-src-in-html/#post-3877508)
 * I’ve found out this issue is created by the “Rewrite URL structure” option. If
   I disable it, it works correctly.

Viewing 1 replies (of 1 total)

The topic ‘Auto minify creating wrong src in html’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [auto](https://wordpress.org/support/topic-tag/auto/)
 * [href](https://wordpress.org/support/topic-tag/href/)

 * 1 reply
 * 1 participant
 * Last reply from: [benjamin.anakena](https://wordpress.org/support/users/benjaminanakena/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/auto-minify-creating-wrong-src-in-html/#post-3877508)
 * Status: not resolved