diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index 1c6609787a..a527f9ca0d 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -224,6 +224,9 @@ # Rewrite Rules RewriteEngine On + # Protect dev install + RewriteRule ^/cgi-bin/koha/(C4|debian|docs|etc|installer/data|install_misc|Koha|misc|selenium|t|test|tmp|xt)/|\.PL$ /notfound [PT] + RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/catalogue/detail.pl?biblionumber=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]