htaccessに以下のコードがあります
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .?- [S=2]
RewriteRule ^abc/(.*)/(.*)$ index.php?aa=$1&bb=$2 [NE,L,QSA]
RewriteRule ^abc/(.*)$ index.php?aa=$1 [NE,L,QSA]
そして、以下のURLを渡すと
http://example.com/abc/some-example?id=123
私によると、私はPHPでge$aa = some-example
およびinすることになっています$id = 123
しかし、私は以下のエラーが発生しています
Not Found
The requested URL /abc/[S=2] was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
上記の .htaccess ファイルは、以下のように URL を渡すと正常に動作します
http://example.com/abc/someexample?id=123