Getting troubles with Paypal monthly subscriptions have held that old https://example.com domain within the paypal subscription profile and can't be transformed without cancel and re-signing up.

things i have in position right now is forcing everything to http://www.example.com so http(s)://example.com 301 -> http://www.example.com

This is exactly what I presently have.

paypal is attempting to submit some monthly subscriptions to https://example.com/payments/ipn.php it had been carrying out a 301 redirect on https to http://www.example.com however, you loose the Publish data on the 301 redirect...

Using the code below, https://www.example.com works, consider i want https://example.com for Paypal to operate, i am unsure how you can permit the none www around the HTTPS domain without them redirecting towards the HTTP host (http://www.example.com)

I added the robots.txt redirection to disallow / on https, this works as I'm not going duplicate site on the internet.

I really hope it has all made sense.

 RewriteCond %{HTTP_HOST} ^domain\.com
 RewriteCond %{REQUEST_URI} !^(/payments)
 RewriteRule ^ http://www.domain.com%{REQUEST_URI} [L,R=301]

 RewriteCond %{SERVER_PORT} ^443$
 RewriteRule ^robots\.txt$ robots_ssl.txt [L] 

This Is Actually The FIXED .htaccess for anybody that's interested!

    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteRule ^ http://www.domain.com%{REQUEST_URI} [L,R=301]

    RewriteCond %{SERVER_PORT} ^443$
    RewriteRule ^robots\.txt$ robots_ssl.txt [L]
    RewriteRule %{HTTPS_HOST} ^domain\.com%{REQUEST_URI}

To filter HTTPS you could utilize following RewriteCond:

RewriteCond %{HTTPS} !=on  # if it's not HTTPS
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

Or you might avoid a redirect, when it is a Publish request, therefore the Publish data will not be lost:

RewriteCond %{REQUEST_METHOD} !=POST  # if it's not POST
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]