I am getting 404, not found when a third party service tries to run their script xmlPopulate_zencart.php:
Code:
RewriteCond %{REQUEST_URI} !^/electronics/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/electronics/editors.* [NC]
# Don't rewrite payment pages/callback handlers
# (Won't be rewritten by rules above but included here in case rewriting of URIs ending in .php is added)
RewriteCond %{REQUEST_URI} !^/electronics/cybersource.php.* [NC]
RewriteCond %{REQUEST_URI} !^/electronics/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/electronics/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/electronics/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !^/electronics/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/electronics/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/electronics/realex_remote_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/electronics/xmlPopulate_zencart.php.* [NC]
RewriteCond %{REQUEST_URI} !^/electronics/xmlPopulate_zencart_db.php.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
The script uses two files, at this point they are giving a 404 error, I am not very familiar with mod rewrite but after reading threads, I understood I can take these scripts out by using RewriteCond, so I excluded or intended to do so, with the same REwriteCond used to exclude payment modules.
Any other solution?
Bookmarks