私のウェブページには次のリンク形式があります。
https://mypage.com/index2.php?page=registration
https://mypage.com/index2.php?page=food&category=1
最初のタイプは次のように置き換えられます。
https://mypage.com/registration (works well)
そして、2番目を次のようにフォーマットしたいと思います。
https://mypage.com/food/1 (doesn't work, the page is loaded, but the images don't)
そこで、次の htaccess ファイルを作成しました。
RewriteEngine on
RewriteRule ^$ index.php [L]
RewriteRule ^([^/.]+)?$ index2.php?page=$1 [L]
RewriteRule ^food/([^/.]+)?$ index2.php?page=food&category=$1 [L]
しかし、うまくいきません。:( これの何が問題なのですか? そして、写真はどこにありますか? ご回答ありがとうございます.