I have tried all i could up to no avail, checked all web tutorials on url .htaccess rewriting, none solved all my problem exclusively, my programming experts help me with this, i have a php web application, the .htaccess code I have only manages url's without the .php extension, like localhost/app/images.php, the link is localhost/app/images, once you click on it, .htaccess understands /images is /images.php and fetches the document, but when i tried to put some more .htaccess code to rewrite some dynamic links like /images/miscellaneous where the right link should be
/images.php?album_id=miscellaneous
i get
internal server error
This is the .htaccess code i have now, it only matches /images to /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