something in htaccess conflicts with my CDN redirect rule
-
In the context of using a CDN, I’ve been recommended to write a rule for my origin domain .htaccess file to redirect requests for images in the WordPress installation to the CDN domain – to avoid possible duplicate content penalties.
I wrote this at the top of the origin domain’s .htaccess file:
RewriteEngine On RewriteCond %{HTTP_HOST} ^$www\. RewriteRule (blog\/wp-content\/uploads\/.*\.jpg) https://cdn.example.com/$1 [R=permanent]
… but something already written into the .htaccess file by W3TC is conflicting with this and stopping it from working. Would you know (a) what that is, and (b) how I could still include my redirect rule ?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘something in htaccess conflicts with my CDN redirect rule’ is closed to new replies.