Bugzilla – Attachment 189141 Details for
Bug 41167
Rewrite Rules missing in etc/koha-httpd.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Follow-up patch for Bug 41167 – Correct rewrite rules in koha-httpd.conf
0001-Bug-41167-Follow-up-Correct-rewrite-rules-in-koha-httpd-conf.patch (text/plain), 2.64 KB, created by
vivek
on 2025-11-06 05:23:33 UTC
(
hide
)
Description:
Follow-up patch for Bug 41167 – Correct rewrite rules in koha-httpd.conf
Filename:
MIME Type:
Creator:
vivek
Created:
2025-11-06 05:23:33 UTC
Size:
2.64 KB
patch
obsolete
>From 73b29ab5333eaff2d02527f73be430dab405fe27 Mon Sep 17 00:00:00 2001 >From: Vivek Kumar <vivek.kumar@bestbookbuddies.com> >Date: Thu, 6 Nov 2025 10:37:37 +0530 >Subject: [PATCH] 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> >--- > etc/koha-httpd.conf | 15 ++++++--------- > 1 file changed, 6 insertions(+), 9 deletions(-) > >diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf >index 4af75672de..1c6609787a 100644 >--- a/etc/koha-httpd.conf >+++ b/etc/koha-httpd.conf >@@ -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,13 +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/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] >+ RewriteRule ^/cgi-bin/koha/acquisition/vendors(.*)?$ /cgi-bin/koha/acqui/vendors.pl$1 [PT] > > # REST API configuration > Alias "/api" "__API_CGI_DIR__" >-- >2.39.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41167
:
188883
|
189141
|
189248
|
189249
|
189252
|
189595
|
189626
|
189627
|
189628