# SimpleRisk Core: legacy URL redirects for simplerisk/vulnerabilities/ (plan 4b).
# Shipped with every release and overwritten on upgrade -- do not edit locally.
# kind=restore: vulnerabilities/configure.php was deleted in 20260422-001 (eb9084bc5c); its settings live in Admin.
# GET/HEAD answer 302, any other method 303 (never 307/308).
# Targets start with the install prefix (.*/) captured from REQUEST_URI by the last condition: a relative [R] target
# would put the filesystem directory into Location (verified on httpd 2.4.62, plan 4b Task 10).
<IfModule mod_rewrite.c>
RewriteEngine On

# legacy-redirect: added=20261105-001 kind=restore
RewriteCond %{REQUEST_METHOD} ^(GET|HEAD)$
RewriteCond %{REQUEST_URI} ^(.*/)vulnerabilities/[^/]+$
RewriteRule ^configure\.php$ %1admin/vulnmgmt.php [R=302,QSD,L]
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$
RewriteCond %{REQUEST_URI} ^(.*/)vulnerabilities/[^/]+$
RewriteRule ^configure\.php$ %1admin/vulnmgmt.php [R=303,QSD,L]
</IfModule>
