• Resolved price4you

    (@price4you)


    Hi,

    we need to exclude mywebsite.com/products.xml from ssl. I try whith code bellow from your wbsite (I follow rules) and it’s not working, can you please help me?

    RewriteCond %{REQUEST_URI} !/mywebsite.com/products.xml

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    As wp will be also redirecting to https, You may need to add a conditional redirect to http for this url. You can do this by inverting the redirect rules.

    Something like:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} =on [NC]
    RewriteCond %{REQUEST_URI} /your-page #add your excluded page here
    RewriteCond %{HTTP_HOST} ^domain.com [OR]
    RewriteCond %{HTTP_HOST} ^www.domain.com
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%/$1 [R=301,L]
    </IfModule>
    Thread Starter price4you

    (@price4you)

    Thanks for answer!

    I try, but it don’t work. Do I need to have plugin disabled?

    Do I need to write whole domain or just /products.xml?

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    You should also disable the WordPress 301 redirect in settings/ssl. Just /products.xml should be enough.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude xml from ssl’ is closed to new replies.