Bug 41167: Fix missing rewrite rules in koha-httpd.conf
This patch adds missing RewriteRules for ERM, Preservation and Acquisition modules in koha-httpd.conf to restore staff client functionality. Test plan: 1. Apply patch 2. Restart Apache 3. Access acquisitions and ERM pages 4. Confirm functionality restored Signed-off-by: Vivek Kumar <vivek.kumar@bestbookbuddies.com> Signed-off-by: David Cook <dcook@prosentient.com.au> Bug 41167: (follow-up) Correct rewrite rules in koha-httpd.conf This follow-up patch fixes issues from the initial patch for Bug 41167: - Adds missing asterisks (*) in rewrite rule patterns - Removes erroneous RewriteRules from the OPAC virtualhost - Ensures all ERM, Preservation, and Acquisition rewrite rules are correctly placed under the intranet virtualhost Test plan: 1. Apply patch 2. Restart Apache 3. Access ERM, Preservation, and Acquisitions modules 4. Confirm pages load correctly without 404 or routing errors Signed-off-by: Vivek Kumar <vivek.kumar@bestbookbuddies.com> Signed-off-by: David Cook <dcook@prosentient.com.au> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
dbf812869d
commit
47384fb03f
|
|
@ -107,9 +107,6 @@
|
|||
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
|
||||
RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L]
|
||||
|
||||
RewriteRule ^/cgi-bin/koha/erm/.*$ /cgi-bin/koha/erm/erm.pl [PT]
|
||||
RewriteRule ^/cgi-bin/koha/preservation/.*$ /cgi-bin/koha/preservation/home.pl [PT]
|
||||
|
||||
# REST API configuration
|
||||
Alias "/api" "__API_CGI_DIR__"
|
||||
<Directory __API_CGI_DIR__>
|
||||
|
|
@ -232,6 +229,13 @@
|
|||
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
|
||||
RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L]
|
||||
|
||||
RewriteRule ^/cgi-bin/koha/erm/.*$ /cgi-bin/koha/erm/erm.pl [PT]
|
||||
RewriteCond %{REQUEST_URI} !^/cgi-bin/koha/preservation/.*.pl$
|
||||
RewriteRule ^/cgi-bin/koha/preservation/.*$ /cgi-bin/koha/preservation/home.pl [PT]
|
||||
RewriteRule ^/cgi-bin/koha/admin/record_sources(.*)?$ /cgi-bin/koha/admin/record_sources.pl$1 [PT]
|
||||
RewriteCond %{QUERY_STRING} booksellerid=(.*)
|
||||
RewriteRule ^/cgi-bin/koha/acqui/supplier.pl$ /cgi-bin/koha/acquisition/vendors/%1? [R]
|
||||
RewriteRule ^/cgi-bin/koha/acquisition/vendors(.*)?$ /cgi-bin/koha/acqui/vendors.pl$1 [PT]
|
||||
|
||||
# REST API configuration
|
||||
Alias "/api" "__API_CGI_DIR__"
|
||||
|
|
|
|||
Loading…
Reference in New Issue