View | Details | Raw Unified | Return to bug 9683
Collapse All | Expand All

(-)a/etc/koha-httpd.conf (-22 / +27 lines)
Lines 82-99 Link Here
82
   ErrorDocument 404 /cgi-bin/koha/errors/404.pl
82
   ErrorDocument 404 /cgi-bin/koha/errors/404.pl
83
   ErrorDocument 500 /cgi-bin/koha/errors/500.pl
83
   ErrorDocument 500 /cgi-bin/koha/errors/500.pl
84
84
85
#  Rewrite Rules
85
   <IfModule mod_rewrite.c>
86
   RewriteEngine On
86
     # Rewrite Rules
87
87
     RewriteEngine On
88
#  Uncomment to turn on rewrite logging
88
89
#  RewriteLog __LOG_DIR__/koha-opac-rewrite.log
89
     # Uncomment to turn on rewrite logging
90
#  RewriteLogLevel 1
90
     #RewriteLog __LOG_DIR__/koha-opac-rewrite.log
91
   RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
91
     #RewriteLogLevel 1
92
   RewriteRule (.+) $1?%1%2 [N,R,NE]
92
93
93
     RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
94
   RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]
94
     #RewriteRule (.+) $1?%1%2 [N,R,NE]
95
   RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
95
     RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]
96
   RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
96
     RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
97
     RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
98
   </IfModule>
97
</VirtualHost>
99
</VirtualHost>
98
100
99
## Intranet
101
## Intranet
Lines 167-180 Link Here
167
     </IfModule>
169
     </IfModule>
168
  </IfModule>
170
  </IfModule>
169
171
170
   RewriteEngine On    
172
   <IfModule mod_rewrite.c>
171
#  Uncomment to turn on rewrite logging
173
     # Rewrite Rules
172
#  RewriteLog __LOG_DIR__/koha-intranet-rewrite.log
174
     RewriteEngine On
173
#  RewriteLogLevel 1
175
176
     # Uncomment to turn on rewrite logging
177
     #RewriteLog __LOG_DIR__/koha-intranet-rewrite.log
178
     #RewriteLogLevel 1
174
179
175
   RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
180
     RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
176
   RewriteRule (.+) $1?%1%2 [N,R,NE]
181
     #RewriteRule (.+) $1?%1%2 [N,R,NE]
177
   RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]
182
     RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]
178
   RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
183
     RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
179
   RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
184
     RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
185
   </IfModule>
180
</VirtualHost>
186
</VirtualHost>
181
- 

Return to bug 9683