私はできることをすべて試しましたが、URLの.htaccess
書き換えに関するすべてのWebチュートリアルをチェックしましたが、私の問題をすべて独占的に解決したものはありませんでした。プログラミングの専門家がこれを手伝ってくれました。私はphp Webアプリケーションを持っています。リンクlocalhost/app/images.php
はlocalhost/app/images
_ /images
_ /images.php
_ /images/miscellaneous
_
/images.php?album_id=miscellaneous
私は得る
internal server error
これは私が今持っている .htaccess コードです。/images から /images.php にのみ一致します
# Turn on URL rewriting
RewriteEngine on
RewriteBase /ansjc
# Remove file extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) $1.php [L]
RewriteRule images/album_id/(.*)/ images.php?album_id=$1
RewriteRule images/album_id/(.*) images.php?album_id=$1