我在.htaccess文件中只允许使用soap和wsdl url。 但在调用soap时,它无法加载wsdl。
有人能告诉我如何使用这种配置制作肥皂吗?
请帮忙!
.htaccess文件:
Options +FollowSymlinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !under_maintenance\.html [NC]
RewriteCond %{REQUEST_URI} !under_maintenance\.php [NC]
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|png|gif|css|ico)$
RewriteCond %{REQUEST_URI} !/api/soap [NC]
RewriteCond %{REQUEST_URI} !/api/wsdl [NC]
RewriteCond %{REQUEST_URI} !/api_index/http [NC]
RewriteRule .* http://test.com/under_maintenance.html [R=301,L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule .* http://test.com/under_maintenance.php?param=%{REQUEST_URI} [R=301,L]