i have two files one is php handler.php file and second one is a htaccess that working fine without .(dot) but when we add dot to its just echo handler.php
book/handler.php exist in book dir
<?php
echo $_GET['bookid'];
?>
.htaccess
RewriteEngine On
# i added 2 line one for book/abc and secon for book/abc/
RewriteRule ^book/([a-z-A-Z-0-9-.]+)$ book/handler.php?bookid=$1 [L,R=301]
RewriteRule ^book/([a-z-A-Z-0-9-/]+)/ book/handler.php?bookid=$1 [L,R=301]
when i submit localhost/book/handler.php?bookid=somthing.php it return handler.php
check out this url for demo link when i add book/somthing or book/somthing.php it return handler.php