1

私はhtaccessの初心者です..私はこのようにhtaccessをファイルしました

    Options -Indexes

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ index.php?/$1 [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 /index.php
</IfModule>

index.phpなしでこのようなURLを呼び出しました

http://localhost/url/

しかし、私が電話しようとすると

http://localhost/url/controller/

http://localhost/url/controller/method/

xamppのホームに戻るページ。

それで私は何をしますか?index.php なしの URL が必要です。

毎度アドバイスありがとうございます。

4

1 に答える 1