404 ERROR ON WORLDPAY CALLBACK
-
I am getting a 404 error when Worldpay is doing a callback request to one of my Shopperpress pages. The page works fine as I have tested it with a Javascript webpage using the Worldpay request, which is:
POST /callback/?installation=239267&msgType=authResult HTTP/1.0 Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Host: www.greenfrogdesigns.co.uk Content-Length: 806 User-Agent: WJHRO/1.0 (WorldPay Java HTTP Request Object) authAmountString=%26%23163%3B289.00&_SP.charEnc=UTF-8&desc=Cart+Order...etc...etc...
Worldpay think it might be a data encoding issue as the content type for their payment response (callback) is as follows:
Content-Type: application/x-www-form-urlencoded
They suggest that the server needs to recognize the data type. Tried setting up a new user-defined MIME TYPE “application/x-www-form-urlencoded” with Extension “x-www-form-urlencoded” but this didn’t work – so I may have set the wrong extension.
Research on the web, meanwhile, showed it might be due to security on the webserver, and the fix is suggested as editing .htaccess to include the lines:
<IfModule mod_security.c> SecFilterInheritance Off </IfModule>
So I looked at my .htaccess file and it currently reads:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress AddType application/x-www-form-urlencoded x-www-form-urlencoded
The last line is interesting – I didn’t put it there! Anyone got any clues as to what is the real problem and what the likely fix is? Help greatly appreciated.
rgds
Adrian
- The topic ‘404 ERROR ON WORLDPAY CALLBACK’ is closed to new replies.