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 filewww/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
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘rewrites_not_working on CloudStack’ is closed to new replies.