我在.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]