Forum Moderators: phranque
I am getting the following error where XMLRPC query to server seems to be passed correctly but we receive the following error. Didn't receive 200 OK from remote server. (HTTP/1.1 301 Moved Permanently)
From the code below in conjunction with Joomla:
########## Begin - Rewrite rules to enhance SEO SEF
#
# RewriteCond %{HTTP_HOST} ^mydomain\.com [NC,OR]
# RewriteCond %{HTTP_HOST} ^www\.mydomain\.com\. [NC,OR]
# RewriteCond %{HTTP_HOST} ^www\.mydomain\.com:[0-9] [NC]
# RewriteCond %{SERVER_PORT}>s ^(443>(s)¦80>s)$
# RewriteRule (.*) http%2://www.mydomain.com/$1 [R=301,L]
#
########## End - Rewrite rules to enhance SEO SEF
Now I'm no expert but do I need to exclude XMLRPC from Rewrite or something?
Thanks in advance, DM.
########## Begin - Rewrite rules to enhance SEO SEF
#
# Externally redirect to canonical hostname, preserving the original
# request's http/https protocol, but excluding xmlrpc requests.
# RewriteCond $1 !xmlrpc [NC]
# RewriteCond %{HTTP_HOST} ^(mydomain\.com¦www\.mydomain\.com(\.¦\.?[0-9]+)$) [NC]
# RewriteCond %{SERVER_PORT}>s ^(443>(s)¦80>s)$
# RewriteRule ^(.*)$ http%2://www.mydomain.com/$1 [R=301,L]
#
########## End - Rewrite rules to enhance SEO SEF
[added] If this 'fixes' the problem, then go back and look at the code that's doing XML remote procedure calls, and fix it so that it requests the canonical domain. If it was properly configured, you would not be seeing this problem. Having corrected that configuration error, you can remove the exception from the rule. [/added]
Jim