12
ファイルまたはディレクトリが存在する場合、htacessファイルを編集して書き換えルールをスキップしていますが、ファイルが存在する場合はURLを別のものに変更します。なぜこれが起こっているのか分かりません。ここに私のhtaccessファイルがあります。ファイルまたはディレクトリが存在する場合、RewriteCondを使用してルールをスキップします
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^project/([^/\.]+)/?$ index.php?view=project&project=$1 [L]
RewriteRule ^for/content/ag index.php?view=opening§ion=ag [L]
RewriteRule ^for/content/bus index.php?view=opening§ion=bus [L]
RewriteRule ^for/content/fcs index.php?view=opening§ion=fcs [L]
RewriteRule ^for/content/market index.php?view=opening§ion=market [L]
RewriteRule ^for/content/trade index.php?view=opening§ion=trade [L]
RewriteRule ^for/content/teched index.php?view=opening§ion=teched [L]
RewriteRule ^for/content/([^/\.]+)/?$ index.php?view=content_area§ion=$1 [L]
index.phpファイルとともに、/ project/ntiディレクトリが存在します。アドレスmywebsite.com/folder/project/ntiが入力されると、mywebsite.com/folder/project/nti/?view=project & project = ntiに変更されます。サンプルサイトがサブフォルダにあるテストサーバーでこれを適用していますが、実装すると、ルートWebサーバーフォルダーに配置されます。
ありがとうございました!