Title: rewrites_not_working on CloudStack
Last modified: November 13, 2022

---

# rewrites_not_working on CloudStack

 *  Resolved [jemand1](https://wordpress.org/support/users/jemand1/)
 * (@jemand1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/)
 * I tested in an other webfolder the mod_rewrite is working just fine.
    It’s probably
   because of the content of the .htaccess file
 * `www/economy.ma/wp-content/.htaccess`
 *     ```
       # BEGIN Converter for Media
       # ! --- DO NOT EDIT PREVIOUS LINE --- !
       <IfModule mod_rewrite.c>
         RewriteEngine On
         RewriteOptions Inherit
         RewriteCond %{HTTP_ACCEPT} image/avif
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.avif -f
         RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.avif [NC,T=image/avif,L]
         RewriteCond %{HTTP_ACCEPT} image/avif
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.avif -f
         RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.avif [NC,T=image/avif,L]
         RewriteCond %{HTTP_ACCEPT} image/avif
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.avif -f
         RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/$1.webp.avif [NC,T=image/avif,L]
         RewriteCond %{HTTP_ACCEPT} image/avif
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.avif -f
         RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.avif [NC,T=image/avif,L]
       </IfModule>
       <IfModule mod_rewrite.c>
         RewriteEngine On
         RewriteOptions Inherit
         RewriteCond %{HTTP_ACCEPT} image/webp
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f
         RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.webp [NC,T=image/webp,L]
         RewriteCond %{HTTP_ACCEPT} image/webp
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f
         RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.webp [NC,T=image/webp,L]
         RewriteCond %{HTTP_ACCEPT} image/webp
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.webp -f
         RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/$1.webp.webp [NC,T=image/webp,L]
         RewriteCond %{HTTP_ACCEPT} image/webp
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f
         RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.webp [NC,T=image/webp,L]
       </IfModule>
       <IfModule mod_headers.c>
         <FilesMatch "(?i)\.(jpg|png|webp|jpeg)(\.(webp|avif))?$">
           Header always set Cache-Control "private"
           Header append Vary "Accept"
         </FilesMatch>
       </IfModule>
       # ! --- DO NOT EDIT NEXT LINE --- !
       # END Converter for Media
       ```
   
 * `www/economy.ma/wp-content/uploads/.htaccess`
 *     ```
       # BEGIN Converter for Media
       # ! --- DO NOT EDIT PREVIOUS LINE --- !
       <IfModule mod_rewrite.c>
         RewriteEngine On
         RewriteOptions Inherit
         RewriteCond %{HTTP_ACCEPT} image/avif
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpg.avif -f
         RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/uploads/$1.jpg.avif [NC,T=image/avif,L]
         RewriteCond %{HTTP_ACCEPT} image/avif
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.png.avif -f
         RewriteRule (.+)\.png$ /wp-content/uploads-webpc/uploads/$1.png.avif [NC,T=image/avif,L]
         RewriteCond %{HTTP_ACCEPT} image/avif
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.webp.avif -f
         RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/uploads/$1.webp.avif [NC,T=image/avif,L]
         RewriteCond %{HTTP_ACCEPT} image/avif
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpeg.avif -f
         RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/uploads/$1.jpeg.avif [NC,T=image/avif,L]
       </IfModule>
       <IfModule mod_rewrite.c>
         RewriteEngine On
         RewriteOptions Inherit
         RewriteCond %{HTTP_ACCEPT} image/webp
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpg.webp -f
         RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/uploads/$1.jpg.webp [NC,T=image/webp,L]
         RewriteCond %{HTTP_ACCEPT} image/webp
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.png.webp -f
         RewriteRule (.+)\.png$ /wp-content/uploads-webpc/uploads/$1.png.webp [NC,T=image/webp,L]
         RewriteCond %{HTTP_ACCEPT} image/webp
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.webp.webp -f
         RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/uploads/$1.webp.webp [NC,T=image/webp,L]
         RewriteCond %{HTTP_ACCEPT} image/webp
         RewriteCond %{REQUEST_FILENAME} -f
         RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpeg.webp -f
         RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/uploads/$1.jpeg.webp [NC,T=image/webp,L]
       </IfModule>
       # ! --- DO NOT EDIT NEXT LINE --- !
       # END Converter for Media
       ```
   
 * `www/economy.ma/wp-content/uploads-webpc/.htaccess`
 *     ```
       # BEGIN Converter for Media
       # ! --- DO NOT EDIT PREVIOUS LINE --- !
       <IfModule mod_mime.c>
         AddType image/avif .avif
         AddType image/webp .webp
       </IfModule>
       <IfModule mod_expires.c>
         ExpiresActive On
         ExpiresByType image/avif "access plus 1 year"
         ExpiresByType image/webp "access plus 1 year"
       </IfModule>
       # ! --- DO NOT EDIT NEXT LINE --- !
       # END Converter for Media
       ```
   
    -  This topic was modified 3 years, 6 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16193940)
 * Hello [@jemand1](https://wordpress.org/support/users/jemand1/),
 * Thanks for your message.
 * Please send me a screenshot of the Help Center tab in the plugin settings. I 
   will check it.
 * Best,
    Mateusz
 *  Thread Starter [jemand1](https://wordpress.org/support/users/jemand1/)
 * (@jemand1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16194369)
 * [https://ibb.co/2PC9tDS](https://ibb.co/2PC9tDS)
 *  Thread Starter [jemand1](https://wordpress.org/support/users/jemand1/)
 * (@jemand1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16194373)
 * > (could you please remove the url from path for privacy in initial post)
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16194400)
 * Thanks [@jemand1](https://wordpress.org/support/users/jemand1/),
 * Thank you for the information. Unfortunately, after reading them, I have no additional
   suspicions. This is probably due to the non-standard configuration of the server
   on this hosting. I hope you understand me – I can only help you theoretically
   here. If there was a problem in the plugin, thousands of users would report it.
 * The rules that I must follow in this forum are that I must provide help for the
   free version of the plugin here on the forum. For the PRO version, I should testify
   outside of this forum. Unfortunately, due to this, I can only ask you for certain
   information and based on it I can infer something or not. So my help is more 
   theoretical.
 * I don’t have the permission to edit your post. This is a WordPress forum – not
   mine.
 *  Thread Starter [jemand1](https://wordpress.org/support/users/jemand1/)
 * (@jemand1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16196916)
 * What do you suggest to be changed in the config ?
    Or what do you suspect could
   be the cause ?
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16196934)
 * [@jemand1](https://wordpress.org/support/users/jemand1/) Test the plugin on another
   hosting or contact your hosting’s technical support. The plugin is used by over
   200,000 users. Most of them run an Apache server and use the same .htaccess files.
   There it works without problems – you are one of the few exceptions. Something
   on your server is different than on 99.99% of hosting.
 *  Thread Starter [jemand1](https://wordpress.org/support/users/jemand1/)
 * (@jemand1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16209965)
 * [@mateuszgbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/) sorry
   isn’t there anything I can do to change to the proper htaccess config… like any
   config suggestion or what I could try to do ….
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16212512)
 * [@jemand1](https://wordpress.org/support/users/jemand1/) Unfortunately not. I
   explained this to you in previous messages. I hope that you understand me.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘rewrites_not_working on CloudStack’ is closed to new replies.

 * ![](https://ps.w.org/webp-converter-for-media/assets/icon-256x256.png?rev=2636288)
 * [Converter for Media - Optimize images | Convert WebP & AVIF](https://wordpress.org/plugins/webp-converter-for-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-converter-for-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-converter-for-media/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-converter-for-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-converter-for-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-converter-for-media/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/rewrites_not_working-on-cloudstack/#post-16212512)
 * Status: resolved