htaccess の新しいルールを作成する必要がありました。私はそれを書きました。しかし、WSDL に問題が見つかりました。新しいルールを使用すると、WSDL への接続に問題が発生します。理由はわかりません。しかし、私はそれを修正する必要があります。
(疑似コード) のようなものを htaccess に記述できますか:
if (http://www.mywebsite.com/mywebaplication/src/webServiceInstances.php?someGetParam) {
RewriteRule ^([^\/]*)$ index.php?route=$1 [QSA]
} else {
(RewriteRule...)
RewriteRule ^([a-zA-Z]+)\.(html|xml|json|jhtml)$ public/index.php?module=$1&controller=Index&action=index&format=$2 [QSA]
RewriteRule ^([a-zA-Z]+)$ public/index.php?module=$1&controller=Index&action=index&format=html [QSA]
}
返信ありがとうございます。
編集:これは私の古い書き直しです
<IfModule mod_rewrite.c>
RewriteEngine On
#php public/index.php -mconfigure
RewriteBase /webaplication/src/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\/]*)$ index.php?route=$1 [QSA]
</IfModule>
これは私のまったく新しい書き直しです
<IfModule mod_rewrite.c>
RewriteEngine On
#php public/index.php -mconfigure
RewriteBase /mywebaplication/src/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#new way: module controller method format
RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+)/([a-zA-Z]+)\.(html|xml|json|jhtml)$ public/index.php?module=$1&controller=$2&action=$3&format=$4 [QSA]
RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+)/([a-zA-Z]+)$ public/index.php?module=$1&controller=$2&action=$3&format=html [QSA]
RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+)\.(html|xml|json|jhtml)$ public/index.php?module=$1&controller=$2&action=index&format=$3 [QSA]
RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+)$ public/index.php?module=$1&controller=$2&action=index&format=html [QSA]
RewriteRule ^([a-zA-Z]+)\.(html|xml|json|jhtml)$ public/index.php?module=$1&controller=Index&action=index&format=$2 [QSA]
RewriteRule ^([a-zA-Z]+)$ public/index.php?module=$1&controller=Index&action=index&format=html [QSA]
#old way(this works for wsdl)
RewriteRule ^([^\/]*)$ index.php?route=$1 [QSA]